Skip to content

useGenericAuth always calls validateUser even when @skipAuth #1475

Answered by n1ru4l
aslansky asked this question in Q&A
Discussion options

You must be logged in to vote

@aslansky From the test it is now more clear to me.

validateUser is called in that case as well because the field could behave differently based on whether a user is authenticated or not. E.g. if you have a Query.feed field it could either resolve to a generic feed if the user resolved from validateUser is null or a customized user feed if the user resolved from validateUser is non-null 9e.g. a user object).

Does that make sense to you? In the meanwhile I will change this issue to a discussion!

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@aslansky
Comment options

@n1ru4l
Comment options

@aslansky
Comment options

Answer selected by aslansky
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
Converted from issue

This discussion was converted from issue #1470 on August 12, 2022 09:30.