Skip to content

how to implement @useAuth(OAuth2Auth<[MyPasswordFlow]>) #1615

Answered by zachion
zachion asked this question in Q&A
Discussion options

You must be logged in to vote

After checking current issues I managed to understand how to work with this and do an implicit flow auth like so:

@useAuth(
  OAuth2Auth<[{
   type: OAuth2FlowType.implicit;
   authorizationUrl: "https://api.example.com/oauth2/authorize";
   refreshUrl: "https://api.example.com/oauth2/refresh";
   scopes: ["https://myservice.azure.com/read", "https://myservice.azure.com/write"];
 }]>
 )


Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by markcowl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant