• UsersApi - factory interface

    Parameters

    • Optional configuration: Configuration
    • Optional basePath: string
    • Optional axios: AxiosInstance

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

    • adminCreateUser:function
    • adminDeletePendingEmailPasswordUser:function
      • Delete a pending user.

        Parameters

        Returns AxiosPromise<void>

        Summary

        Delete a pending email/password authentication user

        Throws

    • adminDeleteUser:function
    • adminDisableUser:function
    • adminEnableUser:function
    • adminGetUser:function
    • adminListDevices:function
    • 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: any

          Override http request option.

        Returns 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: any

          Override http request option.

        Returns AxiosPromise<any>

        Summary

        List users

        Throws

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

        Parameters

        Returns AxiosPromise<void>

        Summary

        Revoke user sessions

        Throws

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

        Parameters

        Returns AxiosPromise<any>

        Summary

        Verify & decode an access token

        Throws

    Export

Generated using TypeDoc