KindeSDK.Api.OAuth (kinde_sdk v1.2.0)

API calls for all endpoints tagged OAuth.

Link to this section Summary

Functions

Returns the details of the currently logged in user Contains the id, names and email of the currently logged in user

Returns the details of the currently logged in user Contains the id, names and email of the currently logged in user

Link to this section Functions

Link to this function

get_user(connection, opts \\ [])

@spec get_user(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, nil} | {:ok, KindeSDK.Model.UserProfile.t()} | {:error, Tesla.Env.t()}

Returns the details of the currently logged in user Contains the id, names and email of the currently logged in user

parameters

Parameters

  • connection (KindeSDK.Connection): Connection to server
  • opts (keyword): Optional parameters

returns

Returns

  • {:ok, KindeSDK.Model.UserProfile.t} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

get_user_profile_v2(connection, opts \\ [])

@spec get_user_profile_v2(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, KindeSDK.Model.UserProfileV2.t()} | {:ok, nil} | {:error, Tesla.Env.t()}

Returns the details of the currently logged in user Contains the id, names and email of the currently logged in user

parameters

Parameters

  • connection (KindeSDK.Connection): Connection to server
  • opts (keyword): Optional parameters

returns

Returns

  • {:ok, KindeSDK.Model.UserProfileV2.t} on success
  • {:error, Tesla.Env.t} on failure