Generating a beaer token with a user id

Am developing a process of authenticating a user with phone number and otp code. After successifully verifying the otp code sent to phone number i would lioke to generate a bearer token for that user but i cannot find any documentation on how to achieve this. How can i do this?

Check this if it helps https://github.com/revant/agrinext/blob/develop/agrinext/otp.py

It’s using oauth2 bearer token with custom endpoints for OTP.

1 Like