Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

Wouldn't it be better to authenticate outside GraphQL? #63

@hisapy

Description

@hisapy

Currently, we're authenticating; login and logout, using auth mutations, then the GraphQL schema is responsible evaluate what to do if there is no :current_user in the GraphQL context in the resolvers.

Perhaps we could use Guardian.Plug.EnsureAuthenticated to avoid clients with no authentication to reach the GraphQL schema at all.

🤔

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions