nova_auth_confirm (nova_auth v0.2.0)

View Source

Email confirmation token management. Generates confirmation tokens and handles the confirmation flow by setting confirmed_at on the user record.

Summary

Functions

Confirm a user's email using a raw confirmation token.

Generate and store a confirmation token for a user. Returns the raw token.

Functions

confirm_user(AuthMod, Token)

-spec confirm_user(module(), binary()) -> {ok, map()} | {error, term()}.

Confirm a user's email using a raw confirmation token.

generate_confirm_token(AuthMod, User)

-spec generate_confirm_token(module(), map()) -> {ok, binary()} | {error, term()}.

Generate and store a confirmation token for a user. Returns the raw token.