Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

When authorization token is not present return anonymous role #1

Closed
coco98 opened this issue Jul 8, 2018 · 0 comments
Closed

When authorization token is not present return anonymous role #1

coco98 opened this issue Jul 8, 2018 · 0 comments

Comments

@coco98
Copy link
Contributor

coco98 commented Jul 8, 2018

Instead of returning 401, return {x-hasura-role: anonymous} if there is no authorization token.
Also, put in a comment explaining what this is and linking to a docs page talking about authorization for not logged-in users.

Depends on hasura/graphql-engine-docs#12

@wawhal wawhal closed this as completed Jul 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants