# Operator authentication

### Happy path flow

Betlink requests the operator for a temporary launch token. Once the token has been obtained, Betlink acquires an access token and a session from Betlink backend by exchanging the launch token. The access token and the session cookie is used to place bets.

<figure><img src="https://1243678755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBM9X73QlDF7bZ0xQjZAx%2Fuploads%2Fgit-blob-d70ea5d48477f0b5ca773c226ee5598e46d9d25d%2FScreenshot%202023-01-26%20at%2012.11.45.png?alt=media" alt=""><figcaption></figcaption></figure>

### Token refresh flow

When the previously obtained access token/cookie has expired, and when the user tries to place a bet, the whole process of obtaining a new launch token, access token and cookie is repeated and bets are placed as soon as the auth info is refreshed.

<figure><img src="https://1243678755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBM9X73QlDF7bZ0xQjZAx%2Fuploads%2Fgit-blob-2d460c89bd4fd48ccb1fe2513a237797eaa0588b%2Fspaces_OslMz5v7Yam3e5drKcu6_uploads_CcbBt7OaOnc08M7w5sZI_Screenshot%202022-12-08%20at%2011.webp?alt=media" alt=""><figcaption></figcaption></figure>
