vestibule/auth
Authentication result types returned to the calling application after a successful OAuth/OIDC flow.
vestibule/auth
Authentication result types returned to the calling application after a successful OAuth/OIDC flow.
Types
Auth
The normalized result of a successful authentication.
Opaque so the field set can grow in future releases. Callers build instances
with auth.new and read fields with accessors; they cannot pattern match on
fields.
pub type AuthFunctions
credentials
Return the OAuth credentials (tokens, expiry).
pub fn credentials(Auth) -> credential.Credentialsextra
Return the provider-specific extra data.
pub fn extra(Auth) -> dict.Dict(String, dynamic.Dynamic)info
Return the normalized user information.
pub fn info(Auth) -> user_info.UserInfonew
Construct an authentication result.
pub fn new( uid: String, provider: String, info: user_info.UserInfo, credentials: credential.Credentials, extra: dict.Dict(String, dynamic.Dynamic)) -> Authprovider
Return the provider name matching the strategy.
pub fn provider(Auth) -> Stringuid
Return the unique identifier from the provider (e.g., GitHub user ID).
pub fn uid(Auth) -> String