View Source CsrfPlus.UserAccess (CsrfPlus v0.1.0)
Represents an user access. This struct is where you can set a token and other user access related informations.
Summary
Types
@type t() :: %CsrfPlus.UserAccess{ access_id: String.t(), created_at: non_neg_integer() | nil, expired?: boolean(), token: String.t(), user_info: UserAccessInfo.t() }
The UserAccess type:
:token
- The token of the access.:access_id
- A unique id to identify the access.:expired?
- A flag indicating if the access is expired or not.:user_info
- The user access information. See more atCsrfPlus.UserAccessInfo
.:created_at
- The time stamp in milliseconds of the access creation.