Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init: webflow oauth integration #1589

Merged
merged 7 commits into from
Oct 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
abvthecity committed Oct 2, 2024
commit 9b1e1cfafdf2b15598060fa0739c1a4934a050c1
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ export default async function handler(req: NextRequest): Promise<NextResponse<AP

// assume that if the edge config is set for webflow, api key injection is always enabled
if (edgeConfig?.type === "oauth2" && edgeConfig.partner === "webflow") {
const accessToken = req.nextUrl.searchParams.get("access_token");
const accessToken = req.cookies.get("access_token")?.value;
if (accessToken == null) {
return NextResponse.json({
enabled: true,
Loading