Authentication provider where users identify using an API-key.

Constructors

Methods

  • Creates an API key that can be used to authenticate as the current user.

    Parameters

    • keyName: string

      the name of the API key to be created.

    Returns Promise<SecretApiKey>

  • Deletes an API key associated with the current user.

    Parameters

    • keyId: string

      the ID of the API key to delete

    Returns Promise<void>

  • Disable an API key associated with the current user.

    Parameters

    • keyId: string

      the ID of the API key to disable

    Returns Promise<void>

  • Enables an API key associated with the current user.

    Parameters

    • keyId: string

      the ID of the API key to enable

    Returns Promise<void>

  • Fetches an API key associated with the current user.

    Parameters

    • keyId: string

      the id of the API key to fetch.

    Returns Promise<Realm.ApiKey>

  • Fetches the API keys associated with the current user.

    Returns Promise<Realm.ApiKey[]>

Generated using TypeDoc