Untitled

 avatar
unknown
python
9 months ago
382 B
3
Indexable
# If all data is present get token from Aurinko
account_details = AurinkoAuthService(
    code=request.data.get("code", None)
).get_token()
# Return if token retreival failed
if not account_details:
    return Response(
        self.get_custom_errors(
            [consts.AurinkoIntegrationError.INTEGRATION_FAILED.value]
        ),
        status=status.HTTP_400_BAD_REQUEST,
    )
Editor is loading...
Leave a Comment