How to log id token

I am using SDK ( I believe it is the latest)

import { AuthService } from '@auth0/auth0-angular';
import { AuthGuard } from '@auth0/auth0-angular';

routing uses

{
        path: 'test/:id', // child route path
        component: MainContentComponent, // child route component that the router renders
        canActivate: [AuthGuard]
      },

My login is below, on click of button

loginWithRedirect() {
this.auth.loginWithRedirect({
redirect_uri: ‘http://localhost:4200
});
}

How can I know , whether I am passing token or id token? How to log.
Note: My backend is Spring , and I want email address to identify user.

Hi @k-auth0,

Have you looked at our angular quickstart? It shows how to include the user’s sub in a call, you should be able to do something similar with the user’s email.

Take a look at this section:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.