Magic Token Explained

What is Magic Token?

Magic Token is RealVco mVPSโ€™s simplified login mechanism. Traditional username/password requires remembering multiple pieces of information, while Magic Token lets you log in with just one click.

How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Link in    โ”‚โ”€โ”€โ”€โ”€>โ”‚  Magic Link โ”‚โ”€โ”€โ”€โ”€>โ”‚  Automatic  โ”‚
โ”‚  your email โ”‚     โ”‚  (with Token)โ”‚     โ”‚  Login      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

When you click the Magic Link in your email:

  1. Browser opens link โ€” URL contains a one-time or short-term authentication token
  2. System verifies token โ€” Confirms token is valid and not expired
  3. Session established โ€” Automatically logs in and stores credentials in browser localStorage
  4. Subsequent auto-login โ€” As long as token hasnโ€™t expired, opening the page again automatically logs you in

Token Types

RealVco uses two types of tokens:

Token TypePurposeValidity
Magic Link TokenFirst-time login24 hours
Session TokenMaintains login state30 days
  • Appears in the installation completion notification email
  • Embedded in Admin Panel and AI partner access URLs
  • One-time use, becomes invalid after use
  • Expires after 24 hours

Session Token

  • Automatically stored in browser after successful login
  • Direct access to URLs will auto-login thereafter
  • Expires after 30 days of non-use
  • Requires Magic Link again after clearing browser data

Security Considerations

Why Magic Token is Secure

While โ€œone link to loginโ€ might sound insecure, there are multiple layers of protection:

Security MechanismDescription
HTTPS EncryptionAll links use HTTPS, tokens are encrypted during transmission
Unpredictable TokensCryptographically secure random generation, cannot be guessed
Short-term ValidityMagic Link automatically expires after 24 hours
One-time UseBecomes invalid immediately after use, cannot be reused
IP RestrictionToken is bound to the IP range of first use, reducing theft risk

โš ๏ธ Important Reminders:

  • Donโ€™t share your Magic Link with untrusted people
  • Donโ€™t post publicly (e.g., on forums, GitHub)
  • Regularly check login records in Admin Panel
  • If you suspect leakage, immediately redeploy the container to generate a new token

FAQ

A: There are two ways to get it back:

  1. Copy from Admin Panel: After logging into Admin Panel, you can copy each containerโ€™s Magic Link
  2. Contact support: Provide proof of purchase, support can resend the installation email

Q: Can I use it on multiple devices?

A: Yes! Magic Link can be used on multiple devices. Each device will establish an independent Session Token.

Q: What if I clear browser data?

A: Youโ€™ll need to use the original Magic Link to log in again. We recommend saving the installation email in a safe place.

Q: How do I log out?

A: There is currently no active logout feature. If you need to force logout, you can:

  1. Clear browser localStorage
  2. Or redeploy the container (generates new token, old one becomes invalid)

Technical Details (For the Curious)

Tokens use JWT (JSON Web Token) format, containing the following information:

Header: { "alg": "HS256", "typ": "JWT" }
Payload: {
  "sub": "container_id",
  "iat": 1234567890,
  "exp": 1234654290,
  "role": "admin"
}
Signature: HMACSHA256(base64(header) + "." + base64(payload), secret)

Tokens are verified server-side to prevent forgery.