Synq
Skip to content
[ synq / docs ]Synq home

Sign in with a wallet

How wallet sign-in works on the web, in the iPhone app and with a one-time code, what sessions last, and why signing in never approves money.

Synq has no passwords and no email accounts. You prove you control an Ethereum-style wallet by signing a short login message. The wallet address becomes your identity across the web hub, the iPhone app and the Telegram link.

What you need#

  • A wallet that can sign EIP-712 typed data. On the web this means a browser wallet that injects window.ethereum. WalletConnect is not wired into the web page yet; the page tells you to use a browser with an injected wallet.
  • In the iPhone app, a wallet reachable through WalletConnect when your build includes a WalletConnect project id. If your build does not, use the one-time code route below.

The sign-in flow#

 Browser / app                         Synq API
 -------------                         --------
 1. ask for a challenge  ------------>  create challenge (valid 5 minutes)
                         <------------  typed data "Synq Workspace Login"
 2. wallet shows the message,
    you sign it
 3. send signature       ------------>  recover the signer address
                                        must equal the wallet, origin must match
                                        challenge is single use
                         <------------  session (cookie on web, token in app)

The login message is EIP-712 typed data with the domain name Synq Workspace Login, version 1, chain id 5042002 (Arc testnet). It contains:

FieldMeaning
challengeIdA random id; the challenge can be used once
walletYour address
originThe site asking you to sign. The page refuses a challenge whose origin is not its own
audienceweb or native, so a web login cannot be replayed as a native one
nonceRandom value that makes each message unique
expiresAtChallenge deadline, at most 5 minutes ahead
statementThe human sentence quoted above

Sessions#

SurfaceWhat you holdLifetime
Web hubAn HttpOnly, Secure, SameSite=Strict cookie15 minutes, then sign in again
iPhone app (device session)A short access token and a rotating refresh tokenAccess token 15 minutes; refresh token up to 30 days
iPhone app (legacy code session)A 15-minute token from a one-time code15 minutes, then a new code

A device session is what the app uses when the server supports it. The app renews quietly while you use it. The refresh token rotates every time it is used. If an old, already-used refresh token is ever presented again, Synq assumes a copy leaked and revokes that whole device session. See Sessions and token rotation.

Signing in on iPhone with a one-time code#

If your iPhone cannot reach your wallet directly, sign in on the web and hand the session to the phone:

  1. Open the workspaces page in your browser and sign in with your wallet.
  2. Choose Generate private sign-in code. You get a one-use code that expires in 2 minutes.
  3. In the app choose Sign in with code and paste it.

The code grants a 15-minute session. It carries no payment authority. Because the code is single use and short lived, a shoulder-surfed or leaked code is worthless a couple of minutes later.

App Lock#

On iPhone you can turn on App Lock under Account. It asks for Face ID or Touch ID when you return to the app. The app says it plainly: unlocking shows the app again and does not approve or sign anything. A biometric unlock is a screen lock, never a signature.

Signing out#

  • Sign out of this iPhone deletes this device's session and cached data and clears Synq notifications from the lock screen.
  • Sign out every device revokes all device sessions for your account. Each device must sign in again.
  • On the web, logging out clears the cookie.

Troubleshooting#

ProblemLikely cause
"Open this page in a browser with an injected Ethereum wallet"No browser wallet detected; use a wallet-enabled browser or sign in on the phone with a code
"Invalid sign-in challenge"The challenge origin, wallet or expiry did not match; reload and try again
Signed in but sees no workspacesYou have none yet. Create one or accept an invitation
Asked to sign in again after a short timeWeb sessions last 15 minutes

Edit this page on GitHub