View Source Auth0.Management.DeviceCredentials (Auth0Api v2.2.0)

Summary

Functions

Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests.

Permanently delete a device credential (such as a refresh token or public key) with the given ID.

Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user.

Types

@type config() :: Auth0.Config.t()
@type error() :: {:error, integer(), term()} | {:error, term()}
@type id() :: String.t()

Functions

@spec create(map(), config()) :: {:ok, map()} | error()

Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests.

see

https://auth0.com/docs/api/management/v2/device-credentials/post-device-credentials

@spec delete(id(), config()) :: {:ok, String.t()} | error()

Permanently delete a device credential (such as a refresh token or public key) with the given ID.

see

https://auth0.com/docs/api/management/v2/device-credentials/delete-device-credentials-by-id

@spec list(map(), config()) :: {:ok, [map()]} | error()

Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user.

see

https://auth0.com/docs/api/management/v2/device-credentials/get-device-credentials