Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add authentication mutations in dashboard API

Marcin Gębala462be72ca66a
diff --git a/saleor/dashboard/graphql/api.py b/saleor/dashboard/graphql/api.py
index 6e75f9be5f..15a59ae295 100644
--- a/saleor/dashboard/graphql/api.py
+++ b/saleor/dashboard/graphql/api.py
@@ -1,4 +1,5 @@
import graphene
+import graphql_jwt
from graphene_django.debug import DjangoDebug
from graphene_django.filter import DjangoFilterConnectionField
from graphql_extensions.auth.decorators import staff_member_required
@@ -50,5 +51,9 @@ class Mutations(graphene.ObjectType):
page_delete = PageDelete.Field()
page_update = PageUpdate.Field()
+ token_auth = graphql_jwt.ObtainJSONWebToken.Field()
+ verify_token = graphql_jwt.Verify.Field()
+ refresh_token = graphql_jwt.Refresh.Field()
+
schema = graphene.Schema(Query, Mutations)