Macfly.Discharge (macfly v0.2.2)
Summary
Functions
Attempts to perform the next step in the discharge protocol. The caller should check the state between calls to next(). Terminal states are :success and :error. For :user_interactive, the caller is responsible for redirecting the user to the user_url before calling next() again.
Types
Functions
Link to this function
next(d)
@spec next(%Macfly.Discharge{ auth: term(), location: term(), state: state(), ticket: term() }) :: %Macfly.Discharge{ auth: term(), location: term(), state: state(), ticket: term() }
Attempts to perform the next step in the discharge protocol. The caller should check the state between calls to next(). Terminal states are :success and :error. For :user_interactive, the caller is responsible for redirecting the user to the user_url before calling next() again.
Link to this function