@brewww/authentication-service-hasura-claims-plugin
v1.2.1
Published
<p align="center"> <a href="http://brewww.com/" target="_blank"><img src="https://github.com/BrewInteractive/authentication-service-nestjs/blob/main/Brew-Logo-Small.png?raw=true" width="300" alt="Brew Logo" /></a> </p>
Downloads
6
Readme
Purpose
The plugin allows you to create the token structure that hasura needs. The fields required by the hasura in the token and added by the plugin are as follows in the table below;
| Name | Example Value | | ----------------------- | --------------------- | | x-hasura-user-id | 1 | | x-hasura-username | example-name | | x-hasura-email | [email protected] | | x-hasura-default-role | user | | x-hasura-allowed-roles | ["user", "admin"] |