Magic.User (magic_admin v0.9.0) View Source

Provides methods to interact with the User via the Magic API

Link to this section Summary

Functions

Retrieves information about the user by the supplied issuer

Retrieves information about the user by the supplied public address

Retrieves information about the user by the supplied DID Token

Logs a user out of all Magic SDK sessions by the supplied issuer

Logs a user out of all Magic SDK sessions by the supplied public address

Logs a user out of all Magic SDK sessions by the supplied DID Token

Link to this section Types

Specs

did_token() :: Magic.Token.did_token()

Specs

issuer() :: Magic.Token.issuer()

Specs

public_address() :: Magic.Token.public_address()

Specs

user() :: %{
  email: String.t(),
  issuer: issuer(),
  public_address: public_address()
}

Link to this section Functions

Link to this function

get_metadata_by_issuer(issuer, opts \\ [])

View Source

Retrieves information about the user by the supplied issuer

Link to this function

get_metadata_by_public_address(public_address, opts \\ [])

View Source

Retrieves information about the user by the supplied public address

Link to this function

get_metadata_by_token(did_token, opts \\ [])

View Source

Retrieves information about the user by the supplied DID Token

Link to this function

logout_by_issuer(issuer, opts \\ [])

View Source

Logs a user out of all Magic SDK sessions by the supplied issuer

Link to this function

logout_by_public_address(public_address, opts \\ [])

View Source

Logs a user out of all Magic SDK sessions by the supplied public address

Link to this function

logout_by_token(did_token, opts \\ [])

View Source

Logs a user out of all Magic SDK sessions by the supplied DID Token