What is the difference between id_token and access_token in Auth0

后端 未结 2 1963
小蘑菇
小蘑菇 2020-12-24 02:26

In Auth0 you can use refresh tokens. In this link, we can see many returned parameters:

lock.showSignin({
  authParams: {
    scope: \'openid offline_access\         


        
2条回答
  •  庸人自扰
    2020-12-24 02:39

    OpenID Connect is built on top of OAuth2.

    • An access_token is useful to call certain APIs in Auth0 (e.g. /userinfo) or an API you define in Auth0.
    • An id_token is a JWT and represents the logged in user. It is often used by your app.
    • A refresh_token (only to be used by a mobile/desktop app) doesn't expire (but is revokable) and it allows you to obtain freshly minted access_tokens and id_token.

提交回复
热议问题