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
We've push support to AuthGuardian for rules based on the TwitchTV data: email rules, email verified, and login status.
That means you can build apps with TwitchTV login, and assign permissions basic on facts about them.
For example, to give users who have verified TwitchTV emails belonging to the onegraph.com domain admin access to our Hasura API, we can build these rules:
When this user on Twitchhas an email that has a domain that is equal to case insensitively "onegraph.com"
and this user on Twitch has verified email is true
Then On hasura set default role "admin"
And if we want to use information from Twitch in our API or client-side app, we can add an additional rule:
When this user on Twitch login status is true
Then On hasura set user id built in value TWITCH_TV_USER_ID
and In the json set value at path user.email built in value TWITCH_TV_EMAIL
and In the json set value at path user.avatarUrl built in value TWITCH_TV_LOGO_URL
And in the end, we'll get a JWT for our API or app with a payload of:
We've push support to AuthGuardian for rules based on the TwitchTV data: email rules, email verified, and login status.
That means you can build apps with TwitchTV login, and assign permissions basic on facts about them.
For example, to give users who have verified TwitchTV emails belonging to the
onegraph.com
domain admin access to our Hasura API, we can build these rules:And if we want to use information from Twitch in our API or client-side app, we can add an additional rule:
And in the end, we'll get a JWT for our API or app with a payload of:
The text was updated successfully, but these errors were encountered: