Skip to content

Commit

Permalink
Update external API example
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Feb 13, 2021
1 parent 56637e5 commit d182ab7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions EXAMPLES.md
Expand Up @@ -217,9 +217,11 @@ export default handleAuth({
async login(req, res) {
try {
await handleLogin(req, res, {
audience: 'https://api.example.com/products', // or AUTH0_AUDIENCE
// Add the `offline_access` scope to also get a Refresh Token
scope: 'openid profile email read:products' // or AUTH0_SCOPE
authorizationParams: {
audience: 'https://api.example.com/products', // or AUTH0_AUDIENCE
// Add the `offline_access` scope to also get a Refresh Token
scope: 'openid profile email read:products' // or AUTH0_SCOPE
}
});
} catch (error) {
res.status(error.status || 400).end(error.message);
Expand Down

0 comments on commit d182ab7

Please sign in to comment.