aaneto18 / graphql.authorization

Tiny example code for express-graphql about how to get a user's JWT, that is provided via Authorization HTTP header for queries and mutations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repo header

This repository contains a tiny example about ho to obtain the user authentication token (based on JWT) sent to a GraphQL API, in order to analyze it and decide if this user is allowed to get the required information.

About

Tiny example code for express-graphql about how to get a user's JWT, that is provided via Authorization HTTP header for queries and mutations.


Languages

Language:JavaScript 100.0%