Skip to main content
Version: v0.10.0

Retrieve current user status

GET 

/api/auth/user

Retrieves current user state, whether someone is logged in or not a 200 result is provided. This is used in the frontend to determine whether certain aspects should be shown.

Request

Responses

Schema
    oneOf
    stateobjectrequired
    Example: authenticated
    user object
    substringrequired
    Example: user-id-123
    namestringrequired
    Example: John Doe
    emailstringrequired
    Example: john.doe@example.com
    didIdstring
    Example: did:example:123456789
    rolesstring[]required
    Example: ["admin","user"]
    refreshTokenstring
    Example: refresh-token-abc123
curl -L 'https://tsg.dataspac.es/api/auth/user' \
-H 'Accept: application/json'