Module auth

Source

Modules§

fastn_user

Structs§

Counter
ProviderData
UserId

Enums§

UserDataError

Constants§

SESSION_KEY

Functions§

get_user_data
Get all user data stored against the user in the database. Only allowed if scope auth:* is granted. Based on permission, whatever you have access to will be given.
is_authenticated
provider_ids
This gives you a list of IDs related to the provider, for the user.
providers
This returns a list of providers whose credentials are attached to the current user account.
session_provider_ids
This gives you a list of IDs related to the provider, for the session.
session_providers
This returns a list of providers whose credentials are attached to this session.
user_data_by_query
user_id
Get the currently logged-in user’s userid. Returns None if the user is not logged in.
username
get the currently logged in user’s username