Skip to content

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

Rename JWT mutations to match existing naming convention

Marcin Gębala4a650129cf4b
diff --git a/saleor/dashboard/graphql/api.py b/saleor/dashboard/graphql/api.py
index 67355e5e34..5b8d88606f 100644
--- a/saleor/dashboard/graphql/api.py
+++ b/saleor/dashboard/graphql/api.py
@@ -87,9 +87,8 @@ class Mutations(graphene.ObjectType):
product_delete = ProductDeleteMutation.Field()
product_update = ProductUpdateMutation.Field()
- token_auth = graphql_jwt.ObtainJSONWebToken.Field()
- verify_token = graphql_jwt.Verify.Field()
- refresh_token = graphql_jwt.Refresh.Field()
+ token_create = graphql_jwt.ObtainJSONWebToken.Field()
+ token_refresh = graphql_jwt.Refresh.Field()
schema = graphene.Schema(Query, Mutations)
diff --git a/saleor/graphql/api.py b/saleor/graphql/api.py
index 2d583833ee..ee1a6a5199 100644
--- a/saleor/graphql/api.py
+++ b/saleor/graphql/api.py
@@ -66,9 +66,8 @@ class Query(graphene.ObjectType):
class Mutations(graphene.ObjectType):
- token_auth = graphql_jwt.ObtainJSONWebToken.Field()
- verify_token = graphql_jwt.Verify.Field()
- refresh_token = graphql_jwt.Refresh.Field()
+ token_create = graphql_jwt.ObtainJSONWebToken.Field()
+ token_refresh = graphql_jwt.Refresh.Field()
schema = graphene.Schema(Query, Mutations)