Welcome to the Kinde community.

P
K
A
A
A

Nextjs getUser() returning null for phoneNumber despite user input

Hey
i am trying to get the user info using the sdk of nextjs getUser()
phonenumber is keep being returned as null despite is it filled fo the user
any idea?

P
A
5 comments

Hi

What SDK are you using, I will get this checked out.

"@kinde-oss/kinde-auth-nextjs": "^2.3.4",

Hi Alex, Sorry for the delay.

We currently don't have a way to add this to the token, I have raised with the team to get this rectified.

You can use our management API to get all the user identities we have for the user (https://kinde.com/api/docs/#get-identities)

For this you can use our JavaScript management SDK, https://github.com/kinde-oss/management-api-js

Will this work for your usecase?

hey can you please notify me when things get okay ?

Add a reply
Sign up and join the conversation on Slack
Join