getUser(token) function location. From docs. #7354
Answered
by
trevor-scheer
HenryOwenz
asked this question in
Q&A
-
I have a silly question. Where is the getUser() function call coming from in this documentation? (https://github.com/apollographql/apollo-server/blob/main/docs/source/security/authentication.mdx) Is it just example? And if so what would be the getUser functionality? |
Beta Was this translation helpful? Give feedback.
Answered by
trevor-scheer
Feb 6, 2023
Replies: 1 comment 1 reply
-
@HenryOwenz it is just example, yes. Here, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
trevor-scheer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@HenryOwenz it is just example, yes. Here,
getUser
is a supposed function that uses a token sent via headers to look up auser
object with some potentially useful details on it needed by your resolvers via thecontext
object.