oauth2: fix typo (#22717)
This commit is contained in:
parent
0ec6e92235
commit
114e474d4c
|
@ -119,7 +119,7 @@ class GetDocumentTokenView(OAUTH2APIViewMixin):
|
|||
if not client.check_redirect_uri(data['redirect_uri']):
|
||||
return Response({'error': 'invalid_request'}, status=400)
|
||||
if data['grant_type'] != 'authorization_code':
|
||||
return Response({'error': 'unsopported_grant_type'}, status=400)
|
||||
return Response({'error': 'unsupported_grant_type'}, status=400)
|
||||
|
||||
try:
|
||||
token = OAuth2Authorize.objects.get(code=data['code']).access_token
|
||||
|
|
Loading…
Reference in New Issue