♻️(backend) standardize error response format in token endpoint
Align error response with the pattern used at other places of the codebase.
This commit is contained in:
committed by
aleb_the_flash
parent
fe83c5fa07
commit
4e6bc157b0
@@ -114,11 +114,7 @@ class ApplicationViewSet(viewsets.GenericViewSet):
|
|||||||
application.client_id,
|
application.client_id,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise drf_exceptions.NotFound(
|
raise drf_exceptions.NotFound("User not found.") from e
|
||||||
{
|
|
||||||
"error": "User not found.",
|
|
||||||
}
|
|
||||||
) from e
|
|
||||||
|
|
||||||
now = datetime.now(timezone.utc)
|
now = datetime.now(timezone.utc)
|
||||||
scope = " ".join(application.scopes or [])
|
scope = " ".join(application.scopes or [])
|
||||||
|
|||||||
Reference in New Issue
Block a user