Skip to main content

Sign in with Polar

People can now sign in to Apiome, create an account and link their Polar account on Linked accounts with Continue with Polar.

  • For administrators. Polar is a new entry in System settings → Add Provider. It needs the Client ID and Client Secret of an OAuth app created under Settings → Developers on Polar; there is no issuer to set. Sign-in providers lists what to set on Polar's side. The environment variables are POLAR_CLIENT_ID and POLAR_CLIENT_SECRET.
  • Callback URL. <BETTER_AUTH_URL>/api/auth/oauth2/callback/polar, added as the app's Redirect URI.
  • Scopes. Apiome asks for openid, profile and email. It reads the name, email address and avatar of the person signing in; it reads no organizations, products, orders, subscriptions or customers and keeps no Polar token.
  • Trusted. Polar says whether the email address is verified. A verified address joins the Apiome account with that address, or creates one; an unverified one ends with Your sign-in provider could not confirm that your email address is verified…. How a provider's email is trusted explains the classes.
  • REST API. GET /v1/admin/auth-providers lists polar as an available provider, and PUT /v1/admin/auth-providers/polar stores its credentials.