-
Notifications
You must be signed in to change notification settings - Fork 14
User authentication
We authenticate users via a simple email verification flow - which is used to generate OAuth 2 access tokens. A user can manage the tokens they have been issued via their OAuth 2 token page.
Authentication occurs by asking for their email and then for the 5-digit security code sent to their email. To do so, first call emailRequest to send the email and then emailExchange to exchange the security code for an access token that will be handled internally by the SDK so you won't need to deal with it.
API endpoint: Authentincation
Request a security_code be sent to the email address of the user you wish to authenticate.
Name | Type | Description |
---|---|---|
FString |
A valid and secure email address your user has access to. |
Callback triggered once ModioEmailRequest finishes.
Name | Type | Description |
---|---|---|
response_code | int32 |
mod.io response status. |
API endpoint: Authentincation
Name | Type | Description |
---|---|---|
security_code | FString |
Unique 5-digit code sent to the email address supplied in the previous request.. |
Callback triggered once ModioEmailExchange finishes.
Name | Type | Description |
---|---|---|
response_code | int32 |
mod.io response status. |
Returns true if the user is logged in, otherwise returns false.
Logs out the user from mod.io.
- Process and initialization
- User authentication
- Browsing
- Subscriptions
- Listeners
- Schemas
- Delegates