-
Notifications
You must be signed in to change notification settings - Fork 0
eh_GJUsersAuthRequest
Daniel Queiroz Porto edited this page Sep 17, 2020
·
1 revision
Inherits: eh_GJBaseRequest > HTTPRequest > Node > Object
This class decribes the Auth api endpoint. It's response is modeled in the custom resource of eh_GJUsersAuthData.
It's a simple class to help with login in the user, but should be the first thing the game does or check for.
If the request fails, the signal gj_request_failed will be emitted with an error dict as its parameter.
return type | method signature |
---|---|
int | auth_user_credentials(String p_username, String p_user_token) |
- gj_auth_data_received(eh_gj_users_auth_data)
Signal sent with Auth Data response. Sends the eh_GJUsersAuthData resource as paremeter.
- URL_ENDPOINT = /users/auth/ --- Address for this endpoint.
Builds url and send request to the auth Endpoint. Return an int which is the request error code.
Quick Reference
eh_GJBaseRequest
-
Resources
-
Credentials
eh_GJGameCredentials
eh_GJUserCredentials
-
Credentials
-
User
eh_GJUsersAuth
eh_GJUsersFetch-
Requests
eh_GJUsersAuthRequest
eh_GJUsersFetchRequest -
ResponseData
eh_GJUsersAuthData
eh_GJUsersFetchData
-
Requests