Untitled

mail@pastecode.io avatar
unknown
python
12 days ago
382 B
1
Indexable
Never
# 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,
    )
Leave a Comment