EzAuth.Accounts.Verification (EzAuth v0.1.0)

Copy Markdown View Source

Summary

Functions

Builds a query for fetching a verification by encoded token when it is still valid.

Functions

build_verification(user, type, value)

fetch_by_token_query(encoded_token, type, value \\ nil)

Builds a query for fetching a verification by encoded token when it is still valid.

Pass value to scope the lookup to a specific identity (the email or phone the verification was issued for). Required for short codes where the token alone isn't enough to bind the lookup to one user; long random tokens can omit it.