How to get the Access Token after Creating new User

Hey there, I am using the /api/v2/users for creating a user through my own Reactjs form, after the user is successfully created how do I get their access-token. Do I have to call oauth/token endpoint or is there a better way.