Skip to main content
GET
/
api
/
auth
/
google
/
services
/
validate
Validate the caller's stored Google Services token
curl --request GET \
  --url https://pria.praxislxp.com/api/auth/google/services/validate \
  --header 'Authorization: Bearer <token>'
{
  "valid": true,
  "cleared": false,
  "message": "<string>",
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token passed in authorization header

Response

Validation completed. Inspect valid for the outcome.

valid
boolean

Whether the stored Google access_token is currently accepted by Google.

Example:

true

source
enum<string> | null

Which storage location the validated token came from. institution means it lived on the user's UserInstitution.googleLoginToken; user means the personal token on the User record. Null when no token is configured.

Available options:
institution,
user
cleared
boolean

Set to true when an invalid token was just cleared from the database.

Example:

false

message
string

Set when no token is configured for the resolved source.

error
string

Set on validation failure — passes through Google's error message.