eh_GJUsersAuthRequest

Extends: eh_GJBaseRequest < HTTPRequest

Description

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 [eh_GJBaseRequest.gj_request_failed] will be emitted with an error dict as its parameter. category: HTTPRequests

Method Descriptions

auth_user_credentials

func auth_user_credentials(p_username: String, p_user_token: String) -> int

Builds url and send request to the auth Endpoint. Return an int which is the request error code.

Signals

  • signal gj_auth_data_received(eh_gj_users_auth_data): Signal sent with Auth Data response. Sends the [eh_GJUsersAuthData] resource as paremeter.