ismetkizgin / authentication-service-nestjs-hasura-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brew Logo

Authentication Service - Hasura Plugin

Hasura Plugin, Authentication Service has been specially developed.

NPM Version Package License NPM Downloads

Instagram Linkedin Twitter

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 info@brewww.com
x-hasura-default-role user
x-hasura-allowed-roles ["user", "admin"]

About

License:MIT License


Languages

Language:TypeScript 86.7%Language:JavaScript 13.3%