alexziskind1 / nativescript-oauth

Other
35 stars 53 forks source link

how to get id_token from ITnsOAuthTokenResult and #96

Closed Elrashid closed 5 years ago

Elrashid commented 5 years ago

i need results["id_token"]; how to get it

is parseTokenResult useful for this

can i get the raw response

export function httpResponseToToken( ..
  ..
  let access_token = results["access_token"];
  let refresh_token = results["refresh_token"];
  let expires_in = results["expires_in"];
  delete results["refresh_token"];

  return {
    accessToken: access_token,
    refreshToken: refresh_token,
    accessTokenExpiration: expDate,
    refreshTokenExpiration: expDate
  };
}
Elrashid commented 5 years ago

i submitted this issue to the wrong Repo. I'm using nativescript-oauth2