You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log("User", user); returns the user without a role attribute. It seems that there might be a problem with extracting the role attribute from the hasura database. When logging into my website the role gets assigned correctly to the role attribute inside the users table on hasura. I would really appreciate some help. If there is more code needed to further assess the problem please let me know! Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a Sveltekit project and am trying to set up role based access control via a hasura database. I am using Authentik as the Oauth provider.
I am extracting the role from the Authentik profile.
console.log("User", user);
returns the user without a role attribute. It seems that there might be a problem with extracting the role attribute from the hasura database. When logging into my website the role gets assigned correctly to the role attribute inside the users table on hasura. I would really appreciate some help. If there is more code needed to further assess the problem please let me know! Thanks!Beta Was this translation helpful? Give feedback.
All reactions