How do I get the user's access token from Weblow's OAuth2
I'm kind of lost on how to implement Webflow's OAuth2 with NextJS app router>
Currently stuck on sending a POST request to their access_token endpoint to receive the data I need to authorize API requests from a user's token
Tried to figure this out through searching on google, but probably couldn't ask the correct question so thought I'd ask here. On google I get results that use popular oauth services such as Google, Github, etc.
Webflow's one is not prebuilt by popular libaries like Auth.js
4 Replies
bump
What's the problem you're having?
I can't figure out how to write the post request with the client secret, client id and code to receive the access token.
When calling using an API Route from the app router I get a 405 callback that the endpoint does not exist, but got it working with Postman
So your problem is on how to make a post request? Are you using any library to do that or with fetch?