• UsersApi - functional programming interface

    Parameters

    Returns {
        adminCreateUser(groupId, appId, adminCreateUserRequest, options?) => Promise<((axios?, basePath?) => AxiosPromise<User>)>;
        adminDeletePendingEmailPasswordUser(groupId, appId, email, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminDeleteUser(groupId, appId, userId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminDisableUser(groupId, appId, userId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminEnableUser(groupId, appId, userId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminGetUser(groupId, appId, userId, options?) => Promise<((axios?, basePath?) => AxiosPromise<User>)>;
        adminListDevices(groupId, appId, userId, options?) => Promise<((axios?, basePath?) => AxiosPromise<any>)>;
        adminListPendingUsers(groupId, appId, after?, options?) => Promise<((axios?, basePath?) => AxiosPromise<any>)>;
        adminListUsers(after?, sort?, desc?, options?) => Promise<((axios?, basePath?) => AxiosPromise<any>)>;
        adminResetUserEmail(groupId, appId, userId, adminResetUserEmailRequest, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminUserLogout(groupId, appId, userId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminVerifyUserAccessToken(groupId, appId, adminVerifyUserAccessTokenRequest, options?) => Promise<((axios?, basePath?) => AxiosPromise<any>)>;
    }

    • adminCreateUser:function
      • Create a new email/password user account. Note: You cannot create user accounts through the Admin API for any authentication provider other than email/password.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<User>)>

        Summary

        Create a user

        Throws

    • adminDeletePendingEmailPasswordUser:function
      • Delete a pending user.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Delete a pending email/password authentication user

        Throws

    • adminDeleteUser:function
      • Delete a specific user account by ID.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Delete a user

        Throws

    • adminDisableUser:function
      • Disable a user.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Disable a user

        Throws

    • adminEnableUser:function
      • Enable a user.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Enable a user

        Throws

    • adminGetUser:function
      • Get a specific user account by ID.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<User>)>

        Summary

        Get a User

        Throws

    • adminListDevices:function
      • Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<any>)>

        Summary

        List a user's devices

        Throws

    • adminListPendingUsers:function
      • List pending user account registrations. Returns up to 50 pending users in a call.

        Parameters

        • groupId: any

          An Atlas Project/Group ID.

        • appId: any

          The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.

        • Optional after: any

          The unique ``_id`` for a pending user. ``List pending users`` can return 50 pending users at a time. To view additional results, find the ``_id`` of the last pending user listed in the previous call to ``list pending users``. Call ``list pending users`` again, passing the ``_id`` to the after parameter.

        • Optional options: AxiosRequestConfig<any>

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<any>)>

        Summary

        List pending users

        Throws

    • adminListUsers:function
      • List confirmed user accounts.

        Parameters

        • Optional after: any

          The `id` of the last user returned by a previous paginated request.

        • Optional sort: any

          The field name to sort results by. The only valid value is the default: `_id`.

        • Optional desc: any

          If `true`, returns sorted results in descending order. If not specified or set to `false`, results return in ascending order.

        • Optional options: AxiosRequestConfig<any>

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<any>)>

        Summary

        List users

        Throws

    • adminResetUserEmail:function
      • Change the email address for an email/password user by ID.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Change a user's email

        Throws

    • adminUserLogout:function
      • Revoke all of a user's sessions.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Revoke user sessions

        Throws

    • adminVerifyUserAccessToken:function
      • Verify a that a user's client access token is valid.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<any>)>

        Summary

        Verify & decode an access token

        Throws

    Export

Generated using TypeDoc