Reputation: 1295
My mobile app has this (fairly common) authentication user experience:
I'm stuck on how to securely implement step 3.1.
My app is written in React Native and using react-native-biometrics
and our backend is using django-oauth-toolkit
and django rest framework. There's a diagram in the docs illustrating the intended use, but to briefly summarise:
So far so good, but what happens next? Once the user has successfully passed biometric authentication, how to I make them signed in on the device? I had thought of storing the user's refresh token on the server and returning that in point 5 above, but that amounts to storing unhashed credentials on the server, which is obviously not OK.
Am I thinking about this right? Do I need to find some way to mint a new access/refresh token?
Upvotes: 0
Views: 35