title | description |
---|---|
Verify Token Endpoint |
Endpoint to verify the validity of a user token in Corgea |
The Verify Token endpoint is used to verify the validity of a user token. This endpoint checks if the provided token corresponds to a valid user in the system.
GET /verify_token/<token>
GET
- token (string, required): The token to be verified. This should be included in the URL.
The response will be in JSON format.
If the token is valid, the response will be:
- status (string): The status of the token verification. It will return "ok".
{
"status": "ok"
}
If the token is invalid, the response will be:
- status (string): The status of the token verification. It will return "error".
{
"status": "error"
}
GET /verify_token/your_token_here
{
"status": "ok"
}
{
"status": "error"
}
- Ensure that the token is included in the URL when making the request.
- This endpoint is protected from CSRF attacks using the
@csrf_exempt
decorator. - The allowed HTTP method for this endpoint is
GET
. Any other method will result in a405 Method Not Allowed
response.