Glossary
Access token
Definition
Access token: A credential an app presents to a server to use protected resources on a user's behalf without sending a password. In OAuth 2.0 (RFC 6749) it is a string representing an authorization, with a scope and a lifetime, and it is renewed with a refresh token when it expires.
Also known asOAuth access tokenAPI access tokensession token
In short
An access token is a credential an app presents to a server to use protected resources without sending your password. RFC 6749 defines it as "a string representing an authorization issued to the client," with a scope and a lifetime. Because whoever holds it can use it, access tokens should be short-lived, kept out of logs and URLs, and refused by the server once the session ends.
Key takeaways
- An access token stands in for your password on every request an app makes.
- It carries a scope and a lifetime, and a refresh token replaces it when it expires.
- A leaked token works for whoever holds it, so keep it out of logs, URLs and screenshots.
- Real sign-out means the server stops accepting the session's tokens, not just the browser forgetting them.
Last reviewed 4 December 2026 by Foxcolab Team
An access token is the credential an app sends to a server with each request so it can use your account without sending your password. RFC 6749, the OAuth 2.0 standard, defines an access token as "a string representing an authorization issued to the client" and the credential for reaching protected resources. The server reads the token's scope and lifetime to decide what the request may do and for how long.
How an app uses one#
You sign in once. The app keeps the access token and attaches it to every call, usually as a bearer token in the Authorization header:
GET /api/v1/files HTTP/1.1
Host: api.example.com
Authorization: Bearer mF_9.B5f-4.1JqMThe server checks the token, not your password, each time. That's why tokens expire: RFC 6749 notes they "may have a shorter lifetime and fewer permissions than authorized by the resource owner." When one runs out, the app swaps a refresh token for a new one instead of asking you to sign in again.
Where it goes wrong#
- Leaks. RFC 6749 says access tokens "MUST be kept confidential in transit and storage." A token copied from a log file, a URL, a screenshot shared in a support ticket or a browser hit by infostealer malware works for whoever holds it.
- Sign-out that only forgets. Some systems check only a token's signature and expiry. Signing out then clears the browser, but a copied token keeps working until its clock runs out. That gap is what session hijacking exploits.
- Too much scope. A token that can do everything turns a small leak into a large one. Request the narrowest scope that does the job.
In Foxcolab#
When you sign in, Foxcolab starts a session on its servers and gives the app an access token that lasts a day, plus a refresh token. The app renews the access token quietly, so you aren't asked for your password every morning. Each token names its session, and Foxcolab's services refuse tokens from a session that has ended. These end access at once, not at expiry:
- Sign out in your Foxcolab account menu ends that session.
- On Your devices, Sign out ends one device's session and Sign out all others ends every session but yours.
- Changing your password ends every other session.
Follow Manage your active sessions, or create a free account.
Keep exploring
Related terms
- Refresh tokenA refresh token is the long-lived credential an app trades for new access tokens, so you stay signed in without typing your password again. Here's how rotation and expiry keep it safe.
- Bearer tokenA bearer token works for anyone who holds it, like cash. Here's how RFC 6750 says to send one, the mistakes that leak them and how servers limit the damage.
- OAuthOAuth is the open standard that lets one app use your account on another service with your permission and without your password. You approve a limited scope, and the app gets a token.
- Session hijackingSession hijacking is taking over someone's signed-in session by stealing or guessing the token that keeps them logged in. It skips the password and two-step verification entirely.
- Session cookieA session cookie is either a cookie that disappears when the browser session ends or the cookie that keeps you signed in. Here's what each attribute does and why stolen ones matter.
- Infostealer (information-stealing malware)An infostealer is malware that copies saved passwords, browser cookies and other secrets from a device and sends them to an attacker. Stolen session cookies can skip two-step verification.

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.