howdy/context/user

helper functions to handle authenticated users.

Types

The user type to store the user information

pub type User {
  User(name: String, claims: Map(String, String))
}

Constructors

  • User(name: String, claims: Map(String, String))

Functions

pub fn add_claim(user: User, key: String, value: String) -> User
pub fn change_name(user: User, name: String) -> User