Auth Service

The UserService provides endpoints for common user management tasks:

The AuthService provides endpoints for swapping your users JWT access token for a Karhoo UserInfo object. The user returned from the AuthService login endpoint is your user that was represented with the access token you passed in. The AuthService contains the following functions:

  • Exchange
  • Revoke

To obtain the profile of the current user at any given point regardless of the authentication method you've configured, you can utilise the UserService to get the current authenticated user, if any.

Examples

iOS

let userService = Karhoo.getAuthService()

Android

val userService = KarhooApi.authService