Using chat bot and user login

after the user presses autherise and i get my OAUTH token, i need to pass it to the bot for it to connect to the twitch servers right? from what i undrerstood from the docs the bot need a user name and a oauth token. how to i get for the bot the oauth token?