bloo
bloo
TTCTheo's Typesafe Cult
Created by bloo on 4/22/2023 in #questions
Adding scope in NextAuth
Hello! I'm working on a project with a nonprofit partner that has setup their Cognito/database that I'm trying to hit. In the PoC they showed me the JWT decodes to have a scope of "scope":"openid membership-bff\\/admin email" but when I put in membership-bff/admin into the
authorization: {
params: { scope: `openid email profile` },
},
authorization: {
params: { scope: `openid email profile` },
},
I get hit with an error telling me I have an invalid scope. Is this a case where I take the token given to me by Cognito and manually inject membership-bff/admin somehow? would appreciate any tips or hints!
2 replies