BreakGlass.DefaultUserProvider (BreakGlassEx v0.1.0)

Copy Markdown View Source

Default implementation of BreakGlass.UserProvider that returns the raw attrs map unchanged.

This enables zero-config use in tests and simple host applications. For production use, implement your own BreakGlass.UserProvider module that returns your application's user struct.

Example

config :break_glass_ex,
  user_provider: BreakGlass.DefaultUserProvider

When build_user/1 is called, it returns the map passed to it directly, which contains at minimum :email, :sentinel_id, :authenticated_at, and :break_glass.

Summary

Functions

Returns the attrs map unchanged.

Functions

build_user(attrs)

Returns the attrs map unchanged.