How do I redirect the user to another URL after login with the URL containing users email

I’m using the express-openid-connect SDK.

After a successful login , I would like to redirect the user to the URL localhost:3000/user/:email.

So basically , after a login , I will need to get the users email id and then redirect to the url

How do I implement this ?