kinde-oss / kinde-react-native-sdk-0-7x

Kinde React Native SDK for authentication for 0.7x
MIT License
21 stars 9 forks source link

feature/force-token-refresh #32

Closed atifcppprogrammer closed 8 months ago

atifcppprogrammer commented 9 months ago

Explain your changes

Addresses #30

Checklist

🛟 If you need help, consider asking for advice over in the Kinde community.

trunges21 commented 8 months ago

@atifcppprogrammer After testing, I found that the forceTokenRefresh method simply returns the currently active token without any changes. Consequently, I'm left wondering what its purpose or usefulness is.

atifcppprogrammer commented 8 months ago

Hi @trunges21, new tokens will be returned if the "user details" are changed, (for e.g. you can see this after updating the given_name or family_name of the current user), while doing testing this was initially my observation too, but if you change the user details, as I mentioned above new tokens will be issued. :+1: