@mediafly/frontend-api - v20.4.1
    Preparing search index...

    Function getActiveUser

    • This endpoint returns information about the current user. There are a few different possibilities for what this call will return:

      If there is no bound user, the call returns 401 Unauthorized and the api client will redirect to the Login app for the user to re-authenticate.

      If there is a bound user but the user's session is invalid, the call succeeds and returns a user model with authenticated: false. The api client will redirect to Viewer's login endpoint in this case and it will handle re-authenticating the user.

      An example of this case would be an environment with PIN or 2FA where the user's session has expired and they need to re-enter their second factor.

      If there is a bound user and the user's session is valid, the call returns a 200 with a valid, authenticated user model.

      Returns Promise<User>