Skip to content

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

Revert original JWT mutation names

Marcin Gębalaf641e73ac939
diff --git a/saleor/dashboard/graphql/api.py b/saleor/dashboard/graphql/api.py
index 426ea8b2dd..bf658023d2 100644
--- a/saleor/dashboard/graphql/api.py
+++ b/saleor/dashboard/graphql/api.py
@@ -79,8 +79,9 @@ class Mutations(graphene.ObjectType):
page_delete = PageDelete.Field()
page_update = PageUpdate.Field()
- access_token_create = graphql_jwt.ObtainJSONWebToken.Field()
- access_token_renew = graphql_jwt.Refresh.Field()
+ token_auth = graphql_jwt.ObtainJSONWebToken.Field()
+ verify_token = graphql_jwt.Verify.Field()
+ refresh_token = graphql_jwt.Refresh.Field()
schema = graphene.Schema(Query, Mutations)
diff --git a/saleor/graphql/api.py b/saleor/graphql/api.py
index f01b577dcf..ffcc0e57ca 100644
--- a/saleor/graphql/api.py
+++ b/saleor/graphql/api.py
@@ -67,8 +67,9 @@ class Query(graphene.ObjectType):
class Mutations(graphene.ObjectType):
- access_token_create = graphql_jwt.ObtainJSONWebToken.Field()
- access_token_renew = graphql_jwt.Refresh.Field()
+ token_auth = graphql_jwt.ObtainJSONWebToken.Field()
+ verify_token = graphql_jwt.Verify.Field()
+ refresh_token = graphql_jwt.Refresh.Field()
schema = graphene.Schema(Query, Mutations)