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
Mart
Mart2y ago
bump
bernardoamim
bernardoamim2y ago
What's the problem you're having?
Mart
Mart2y ago
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
bernardoamim
bernardoamim2y ago
So your problem is on how to make a post request? Are you using any library to do that or with fetch?
Want results from more Discord servers?
Add your server