Bouncer.EmailVerification

A library of functions used to work with email verification.

Summary

Functions

Destroys a email verification token given the token and user ID. See Bouncer.Token.delete/2

Generates an email verification token. See Bouncer.Token.Generate/4

Removes any previous email verification tokens and generates a new one. See Bouncer.Token.regenerate/4

Verifies that a email verification token is valid. Returns associated data from the store using the token as a key. See Bouncer.Token.Verify/3

Functions

destroy(token, id)

Destroys a email verification token given the token and user ID. See Bouncer.Token.delete/2.

generate(conn, user, ttl \\ 86400)

Generates an email verification token. See Bouncer.Token.Generate/4.

regenerate(conn, user, ttl \\ 86400)

Removes any previous email verification tokens and generates a new one. See Bouncer.Token.regenerate/4.

verify(conn, token)

Verifies that a email verification token is valid. Returns associated data from the store using the token as a key. See Bouncer.Token.Verify/3.