The signed-in account.
The account id and display name, plus the provider, provider label and handle the browser signed in with, its role, every way it signs in (`sign_in`), and the session expiry. With AUTH_DISABLED it is the local dev account (`provider: "local"`, `auth_disabled: true`, `role: "admin"`).
The account id and display name, plus the provider, provider label and handle the browser signed in with, its role, every way it signs in (sign_in), and the session expiry. With AUTH_DISABLED it is the local dev account (provider: "local", auth_disabled: true, role: "admin").
cookieAuthsluby_session<token>Signed session cookie issued to the Studio at sign-in (email and password, GitHub, setup, or an invite or reset link).
The signed-in account, or the local dev account.
application/json- response
id*stringThe account id.
uuidname*stringDisplay name.
username*stringThe handle the session signed in with: the email for password, GitHub's login for github.
provider*|How this session signed in: password, github, or local with AUTH_DISABLED.
provider_label*string|nullauth_disabled*booleanTrue when the server runs with AUTH_DISABLED and this is the local dev account.
role*stringAdmins also see deployment-wide operations data (the full system status, metrics and the whole reconciliation report) and manage members. Always admin for the local dev account, the one user of an AUTH_DISABLED server.
"admin""member"operator*booleanDeprecatedUse role. True when role is admin.
sign_in*array<>Every way the account signs in.
expires_at*|date-timeproviderLabel?|DeprecatedOlder spelling of provider_label, kept so clients written for 0.1.0 keep working.
authDisabled?booleanDeprecatedOlder spelling of auth_disabled, kept so clients written for 0.1.0 keep working.
expiresAt?integerDeprecatedOlder unix-seconds form of expires_at, kept so clients written for 0.1.0 keep working.
curl -X GET 'https://sluby.example.com/api/v1/auth/me'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "username": "string", "provider": "string", "provider_label": "string", "auth_disabled": true, "role": "admin", "operator": true, "sign_in": [ { "provider": "string", "username": "string" } ], "expires_at": "2019-08-24T14:15:22Z", "providerLabel": "string", "authDisabled": true, "expiresAt": 0}Use an invite or reset link, and sign in. POST
An invite makes a new member with its role. A reset link sets the member’s password (their first, when they had none) and ends every other session of the account. Either way the link is used up and the browser is signed in.
Change the signed-in member's name. PATCH
Studio sessions only. The name the members list and the Studio show.