passport-oauth2
passport-oauth2 copied to clipboard
Dynamic token URL?
I'm writing an oAuth 2.0 flow for integrating with Vend POS and they return a domain_prefix
along with the authorization code which is supposed to be used as a subdomain when requesting an access token i.e https://{domain_prefix}.vendhq.com/api/1.0/token
. What's the best way of achieving that?
Vend docs: https://developers.vendhq.com/documentation/oauth.html
hi @alexmic I have the same issue with using the vend API as well. How did you solve it?
As a last resort I'm thinking of just prompting the user to enter their domain.
I've added this functionality here
https://github.com/theogravity/passport-oauth2-alt