vestibule/user_info
Normalized user profile returned by a provider's userinfo endpoint or extracted from an ID token. Provider-specific fields land in `extra`.
vestibule/user_info
Normalized user profile returned by a provider’s userinfo endpoint or
extracted from an ID token. Provider-specific fields land in extra.
Types
UserInfo
Normalized user information across all providers.
Opaque so the field set can grow in future releases without breaking
callers that construct or pattern-match the value. Build instances with
new plus the with_* helpers, and read fields with the accessors.
pub type UserInfoFunctions
description
Return the profile description, when the provider supplied one.
pub fn description(UserInfo) -> option.Option(String)email
Return the verified email address, when one is available.
pub fn email(UserInfo) -> option.Option(String)image
Return the avatar image URL, when the provider supplied one.
pub fn image(UserInfo) -> option.Option(String)name
Return the display name, when the provider supplied one.
pub fn name(UserInfo) -> option.Option(String)new
Construct empty user information. Add fields with the with_* helpers.
pub fn new() -> UserInfonickname
Return the nickname or handle, when the provider supplied one.
pub fn nickname(UserInfo) -> option.Option(String)urls
Return the map of named profile URLs.
pub fn urls(UserInfo) -> dict.Dict(String, String)with_description
Set the profile description or bio.
pub fn with_description( UserInfo, option.Option(String)) -> UserInfowith_email
Set the verified email address.
Strategies should only set this when the provider has verified the address; otherwise leave it unset.
pub fn with_email( UserInfo, option.Option(String)) -> UserInfowith_image
Set the avatar image URL.
pub fn with_image( UserInfo, option.Option(String)) -> UserInfowith_name
Set the display name.
pub fn with_name( UserInfo, option.Option(String)) -> UserInfowith_nickname
Set the nickname or handle.
pub fn with_nickname( UserInfo, option.Option(String)) -> UserInfowith_urls
Set the map of named profile URLs.
pub fn with_urls( UserInfo, dict.Dict(String, String)) -> UserInfo