Magic.User (magic_admin v0.8.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
Specs
Retrieves information about the user by the supplied issuer
Specs
get_metadata_by_public_address(public_address()) :: {:ok, user()} | {:error, String.t()}
Retrieves information about the user by the supplied public address
Specs
Retrieves information about the user by the supplied DID Token
Specs
Logs a user out of all Magic SDK sessions by the supplied issuer
Specs
logout_by_public_address(public_address()) :: {:ok, %{}} | {:error, String.t()}
Logs a user out of all Magic SDK sessions by the supplied public address
Specs
Logs a user out of all Magic SDK sessions by the supplied DID Token