From your PC to your phone
A token as a code
A long access token is made on a PC and typed on a phone, which is where it goes wrong. Paste it here instead: this page draws it as a code, and the DeployGoat app scans it from its token field.
This page draws the code with a script, and no script has run in this browser. Turn scripts on for this page, or paste the token into the app.
What this page does with your token
- It draws the code in your browser. The token is not sent to us or to anyone: the page makes no request once it has loaded.
- It keeps nothing: no cookie, nothing in the browser's storage, and the field is emptied as the code is drawn.
- The code is your token in the clear, so it is wiped after two minutes, and at once when you leave the tab.
- The script is short and our own, with nothing from anywhere else in it. Read it: qr-page.js, qr-code.js and qr-token.js.
In the app
- Open the screen that asks for the token: Connect for Vercel, or Account and then Connect Supabase or Connect self-hosted.
- Tap Scan a code under the token field and point the phone at the code.
- The token lands in the field, hidden. Tap Connect.
The scanner is the phone's own, part of Google Play services. The app has no camera permission and never sees the camera's picture: it is handed the text of the code and nothing else.
Which tokens
Any the app takes: a Vercel access token, a Supabase access token, or the secret key of a self-hosted Supabase instance. The code holds the token itself, behind a few words that mark it as one for the app. Any scanner can read it, so treat the code as you treat the token.