Skip to main content

Get the signed-in user

GET 

/api/profile

Returns the signed-in user's OIDC session object (username, email, name and any other session fields) with isAdmin added, which tells the UI whether to show settings and all users' devices. If the app has no admins yet, the first user to make an authenticated request to any route is saved as admin. Any signed-in user may call it.

Responses​

Session user.