Rivet.Auth.Signin.Local (rivet_ident v3.5.0)

View Source

Local login scheme

Summary

Functions

check(auth, args)

@spec check(Rivet.Auth.Domain.t() | String.t(), params :: map()) ::
  Rivet.Auth.Domain.result()

check_password(user, password)

@spec check_password(
  hash :: String.t() | Rivet.Ident.User.t(),
  password :: String.t()
) :: boolean()

load_password_factor(pass)

@spec load_password_factor(Rivet.Auth.Domain.result()) :: Rivet.Auth.Domain.result()

load_user(arg, handle)

@spec load_user(Rivet.Auth.Domain.result(), handle :: String.t()) ::
  Rivet.Auth.Domain.result()

signup(host, args, type \\ :authed)

valid_user_factor(pass, password)

@spec valid_user_factor(Rivet.Auth.Domain.result(), password :: String.t()) ::
  Rivet.Auth.Domain.result()