View Source ow_token_serv (overworld v2.0.0)

Summary

Functions

Exchanges a token for a new one if it matches an existing Session PID.

Generates a new token for the given session PID.

Starts the token server.

Types

-type token() :: binary().

Functions

Link to this function

code_change(OldVsn, State, Extra)

View Source
-spec exchange(token()) -> {pid(), token()} | false | denied.

Exchanges a token for a new one if it matches an existing Session PID.

Link to this function

handle_call(_, From, State)

View Source
Link to this function

handle_info(Info, State)

View Source
-spec new(pid()) -> token().

Generates a new token for the given session PID.

-spec start_link() -> {ok, pid()} | {error, term()}.

Starts the token server.

Link to this function

terminate(Reason, State)

View Source