Auth Service
Refresh Token
RefreshToken exchanges a valid refresh token for a new access token. The refresh token is read from the HttpOnly cookie. Returns a new short-lived access token.
curl -X POST "https://demo.usememos.com/api/v1/auth/refresh" \ -H "Content-Type: application/json" \ -d '{}'{
"accessToken": "string",
"expiresAt": "2019-08-24T14:15:22Z"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}Get Current User
GetCurrentUser returns the authenticated user's information. Validates the access token and returns user details. Similar to OIDC's /userinfo endpoint.
Sign In
SignIn authenticates a user with credentials and returns tokens. On success, returns an access token and sets a refresh token cookie. Supports password-based and SSO authentication methods.

