GetSupportX
Portal sign-in docs
Portal sign-in

Troubleshooting

Why a sign-in through your website didn’t work, and how to fix it.

Where to look first

Open Settings → Help center & portal → Portal sign-in → Check it works. It shows a checklist, your last successful sign-in, the last connection check from your site, and recent failed sign-ins with the reason in plain words (the 5 most recent; we keep up to 10 for 30 days).

Your customers only ever see one short message (“Your sign-in link expired or was invalid”, or “We couldn’t sign you in with your account” after a login-provider sign-in) and can still sign in with an emailed link. The reason is for you.

The “Sign in with …” button doesn’t show

Your portal shows the button only when all three of these are done:

  • Sign in through your website is switched on.
  • A secret key is set.
  • A sign-in link is saved.

The checklist under Check it works ticks them off, and “View sign-in page” opens the page your customers see.

The Sign in with your login provider button shows once its issuer, client ID and client secret are saved and it is switched on. The switch doesn’t turn on before that.

Customers land on your website, not signed in

Your sign-in link is probably your homepage or login page instead of the address where the code runs, so the code never runs. What is the sign-in link? Test sign-in reports this as “sends visitors to your homepage” or “shows a page”.

  • On WordPress the link ends with /?gsx_support=1, and the plugin must be connected or the code pasted into functions.php.
  • A caching plugin or CDN can serve a cached page at that address. Exclude your sign-in link from the cache.
  • After logging in, your login page must send people back to the sign-in link (the guides pass it as next), or they stop on your site.

Customers land on the portal home, not the page they wanted

The portal adds the page they wanted to your sign-in link as ?gsx_return=. Your code has to pass it on as &redirect=, and keep it through your login page. Older copies of the code don’t; copy the current code from your guide. The return path

Using the WordPress plugin? It passes the page on from version 0.5.2. With an older plugin (0.5.1 or earlier), customers land on the portal home after signing in — update the plugin.

Failed sign-ins: every reason

These are the reasons Check it works shows under recent failed sign-ins, word for word. Sign-ins through your website first; login provider sign-ins below.

Failure reasons and fixes: sign in through your website
What Check it works saysHow to fix it
The link arrived without its signed details (payload and sig).Your code must send the customer to the callback URL with both ?payload= and &sig=. Check your sign-in link points at your website (where the code runs), not at the callback URL itself.
Sign in through your website was turned off.Switch Sign in through your website back on in Settings → Help center & portal → Portal sign-in, or remove the link to it from your site.
There was no secret key set.Create a secret key in Settings → Help center & portal → Portal sign-in and put it in your site’s code. A removed key can’t be brought back, so the new one replaces it everywhere (on WordPress with the plugin, click Connect again).
The signature didn't match. Your website is signing with a different secret key than the one set here — paste the current key into your site (after Replace, the old one stops working).Put the current key in your site (usually the GSX_SSO_SECRET environment variable). After Replace, the old key stops working at once; on WordPress with the plugin, click Connect again. Writing your own code? Sign the base64 text exactly as sent, not the JSON; use the key as text; and URL-encode the payload. Signature rules
Your website's details couldn't be read. It must send base64 JSON with at least externalId.The payload must be JSON, then base64, and include externalId. Required fields
The link was already expired when it arrived. Check your server's clock, and make sure the sign-in page is never cached.Make sure your server’s clock is right, and that the link is built when the customer clicks, not earlier (for example, into a page when it loads). Make sure no cache stores your sign-in link’s response. Expiry and clocks
The link's expiry (exp) was more than 10 minutes ahead.Set exp to now + 300 seconds. It must be in seconds, not milliseconds (JavaScript’s Date.now() is milliseconds), and no more than 10 minutes ahead; with iat, exp − iat must also be 10 minutes or less.
The same link was used twice — usually a page cache or CDN storing the redirect.Your sign-in link’s response is being reused. Send Cache-Control: no-store and exclude the sign-in link from page caches and CDNs. The guides’ code already sends a fresh jti on every click; if you wrote your own code, do the same. A customer pressing Back onto an old link also causes this once; it is harmless. One-time links
The site field wasn't a valid web address.Send site as your website’s origin, like https://yourwebsite.com (http or https, no user name or password), or leave it out. The site field
That email already belongs to a customer linked to a different account on your site, so we didn't merge them.Usually the same person has two accounts on your site, or the way your ids are built changed. Keep each customer’s id the same over time; if you change the format, send the old id as legacyExternalId with site. Changing ids
Something went wrong on our side. Try again in a minute.Nothing to change on your side. Try again in a minute; if it keeps happening, contact us.

Login provider (OIDC)

Reasons from Sign in with your login provider. Start with Test connection in its card: it catches a wrong issuer and an unusable provider before any customer does. The client ID and secret are only checked during a real sign-in, so try the button yourself too. Testing your login provider

Failure reasons and fixes: login provider (OIDC)
What Check it works saysHow to fix it
Sign in with your login provider was off, or its issuer, client ID or client secret was missing.In Settings → Help center & portal → Portal sign-in, open Sign in with your login provider: check Show the button on your portal is on and the issuer, client ID and client secret are saved. If they are, paste the client secret again and click Save. Turned it off or removed it on purpose? Then a customer clicked a button from before; nothing to fix.
We couldn't use your login provider's settings (its /.well-known/openid-configuration). Check the issuer URL in Settings and run Test connection.We read your provider’s settings at <issuer>/.well-known/openid-configuration. Check the issuer is exactly your provider’s (each provider’s issuer), then run Test connection: it says what’s wrong. It also fails when the provider signs ID tokens only with algorithms we don’t accept, or takes the client secret neither as client_secret_basic nor as client_secret_post.
We couldn't reach your login provider. Check the issuer URL, and that the provider is up.Check the issuer address for typos, and your provider’s status page. We only connect to public https addresses, so a provider on a private network can’t be used. If it was a blip, the next sign-in works.
The sign-in came back without a matching start — it took over 10 minutes, cookies were blocked, or it was opened in another browser. Starting again fixes it.Usually nothing to fix: the customer clicks the button again. Starting from two tabs at once causes it too (only the latest counts). If it keeps happening, check that their browser allows cookies for your help center, and that they finish signing in within 10 minutes. Many attempts from one network within 10 minutes are also turned away this way.
The login provider didn't sign them in — they cancelled, or the provider refused (for example a consent screen was declined).Usually the customer cancelled. If not, check they’re allowed to use the app at your provider: in Okta, under the app’s Controlled access; in Microsoft Entra External ID, that the app is added to your sign-up and sign-in user flow and admin consent is granted. On Clerk or Supabase, the customer has to approve the consent screen.
Your login provider refused to swap the sign-in code. Check the client ID and secret, and that the redirect URI registered with the provider is exactly the one Settings shows.Check the client ID, and paste the client secret again (Microsoft Entra secrets expire). Check the redirect URI registered with your provider is exactly the one Settings shows, character for character. On Auth0, set the Credentials tab’s Authentication Method to the method Test connection names. Provider steps
The login provider's ID token couldn't be read.Your provider sent something other than a signed ID token. If it offers to encrypt ID tokens, turn that off: we accept signed tokens, not encrypted ones. What we accept
The login provider signed its ID token in a way we don't accept. Use an RS256, PS256 or ES256 signing key (Supabase: switch from the default HS256).Switch your provider to an RS256 or ES256 signing key (the reference lists every algorithm we accept). On Supabase, move from the default HS256 to an RS256 or ES256 key. On Auth0, set the application’s token signing algorithm (in its advanced OAuth settings) to RS256, not HS256. We never accept HS256 or unsigned tokens. Accepted algorithms
The ID token was signed with a key the login provider doesn't publish.We fetch your provider’s keys again straight away, so a key rotation fixes itself within a minute. If it keeps happening, the token came from another tenant or instance than the issuer in Settings (for example a Clerk development instance against a production issuer): make the issuer and client ID come from the same one.
The login provider's signing key is unusable (for example an RSA key under 2048 bits).Your provider publishes a signing key we can’t safely use: an RSA key under 2048 bits, or one with parts missing. Rotate to a 2048-bit (or longer) RSA key or a P-256 or P-384 EC key at your provider.
The ID token's signature didn't match the login provider's published keys.Check the issuer and client ID in Settings belong to the same app and tenant as the token’s keys, then run Test connection. If it still fails, something changed the token on the way; contact us.
The ID token was for someone or something else — wrong issuer or client ID, expired, or not from this sign-in. Check the issuer and client ID in Settings.Check the issuer and client ID in Settings: Save stores the issuer the way your provider spells it, so save it again if you changed tenants. We accept only tokens made for your client ID alone; an audience with other values is refused. A token that has expired, or was issued more than 10 minutes before it arrived, is refused too; that is rare and points at a clock. Claims we check

Test sign-in: every result

Test sign-in opens your saved sign-in link from our server, as a visitor who isn’t logged in, and reports where it sends that visitor. It opens your sign-in link but doesn’t follow where it redirects, and it has no account on your site, so it can’t check the signature; for that, log in and open the link yourself.

Test sign-in results
What you seeWhat it meansWhat to do
Your sign-in link is live.Your link sent a visitor who isn’t logged in somewhere other than your homepage or the portal, and the result names that address. That’s right if it is your login page.Check the address named is your login page. Then log in to your site and open your sign-in link to check the rest.
Your sign-in link sends visitors to your homepage.The code isn’t running at this address, so customers would land on your site without being signed in.Check the sign-in link matches your guide, and that the code is installed.
This link shows a page instead of sending visitors on (or: your site answered with a redirect but no address).The address is an ordinary page: the code isn’t running there.Check the link. On WordPress, check the plugin is connected or the code is in functions.php, and that the link ends with /?gsx_support=1.
Your site signed in a visitor who isn’t logged in.Our check has no account on your site, yet it was sent straight to the portal. Anyone could get in.Fix this first: the code must sign in only logged-in customers and send everyone else to log in.
Your site says this page doesn’t exist (404).Nothing is at that address.Check the link for typos, and that the code is installed at that address.
Your site returned an error.Your server failed while answering.Check your server’s error log. A missing GSX_SSO_SECRET is a common cause.
Your site blocked our check (401, 403 or 429).A firewall or bot protection turned our server away. Your link may be fine.Log in to your site and open your sign-in link yourself to test it.
We couldn’t reach your site.It didn’t answer in time, refused the connection, or the address isn’t on the public internet.Check the address and that your site is up. Customers can’t reach a private address either.

Still stuck?

Compare your code with your platform’s guide line by line, or with the protocol reference. The guides’ code is tested against our checks.

Read next