Typo in Authentication and Access Control guide #9339
Unanswered
indexofmetals
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I noticed a typo in the Authentication and Access Control guide. The guide says that the following session data query:
Yields data similar to the following GraphQL query
But only specifying "isAdmin" doesn't return the user id. You can still access the user's ID by checking the session's itemId property, but not using the isUser function specified later in the docs, which checks that
session?.data.id === item.id
For the code in the guide to work, we either need to create the auth with
or modify the isUser function to return
session?.itemId === item.id
Beta Was this translation helpful? Give feedback.
All reactions