Skip to content

Commit

Permalink
Merge pull request #174 from SirTelemak/fix/fix-typo-in-resposes
Browse files Browse the repository at this point in the history
Fix typo in Responses.get_token_response
  • Loading branch information
ahopkins committed Dec 30, 2019
2 parents 5ba6a88 + 8299bf4 commit c688a89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/pages/endpoints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ What if we wanted a ``/register`` endpoint? It could easily be added like this:
self.config.refresh_token_name(): refresh_token
})
response = self.responses.get_token_reponse(
response = self.responses.get_token_response(
request,
access_token,
output,
Expand Down
2 changes: 1 addition & 1 deletion example/custom_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def post(self, request, *args, **kwargs):
)
output.update({self.config.refresh_token_name: refresh_token})

response = self.responses.get_token_reponse(
response = self.responses.get_token_response(
request,
access_token,
output,
Expand Down
4 changes: 2 additions & 2 deletions sanic_jwt/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def post(self, request, *args, **kwargs):

output = await self.do_output(output)

resp = self.responses.get_token_reponse(
resp = self.responses.get_token_response(
request,
access_token,
output,
Expand Down Expand Up @@ -190,7 +190,7 @@ async def post(self, request, *args, **kwargs):
)
output = await self.do_output(output)

resp = self.responses.get_token_reponse(
resp = self.responses.get_token_response(
request, access_token, output, config=self.config
)

Expand Down
2 changes: 1 addition & 1 deletion sanic_jwt/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def get_access_token_output(request, user, config, instance):
return access_token, output

@staticmethod
def get_token_reponse(
def get_token_response(
request, access_token, output, config, refresh_token=None
):
response = json(output)
Expand Down

0 comments on commit c688a89

Please sign in to comment.