Skip to content

There is a way to change context type based on the auth scopes? #350

Answered by hayes
willianhf asked this question in Q&A
Discussion options

You must be logged in to vote

Seems like something got dropped from the docs

loggedIn: Context & { User: User };

Basically, you can provide custom contexts for your scopes and use auth field method to get a custom context

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@willianhf
Comment options

@hayes
Comment options

Answer selected by willianhf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants