Appearance
Polar authentication
Polar authentication lets your users sign in with their Polar account. Once connected, you can offer “Continue with Polar” in your WeWeb app.
What this integration supports
- Social sign in with Polar
- Redirect to different pages for success, error, and first-time users
Setup in Polar
You create an OAuth 2.0 client in Polar and register WeWeb’s redirect URL (the URL Polar sends users back to after sign in).
1. Create an OAuth client
- Open your Polar settings: Polar OAuth settings.
- Click
Create OAuth Client. - Fill in the required fields:
Application NameClient TypeRedirect URIsScopesHomepage URL
- Add this redirect URI:
https://<your-domain>/api/auth/callback/polar
Polar blocks http:// redirect URIs (except for localhost). If you are testing locally, use http://localhost/... only where Polar allows it.
- Create the client and copy:
Client IDClient Secret
2. Add additional redirect URIs (optional)
If you use multiple environments, add one redirect URI per environment (preview, staging, production).
Connect Polar in WeWeb
- In the WeWeb editor, go to
Data & API → Auth → Integrating providers. - Find
Polarand expand it. - Turn on the
Enabletoggle. - Paste:
Client IDClient Secret
- Click
Save.
WeWeb stores these values as environment variables (for example PROVIDER_POLAR_CLIENT_ID and PROVIDER_POLAR_CLIENT_SECRET).
Test sign in
- In
Interface, add a “Continue with Polar” button. - Create a workflow on click and add
Sign in with social provider. - Set:
Provider:polarSuccess page,Error page, And (optional)New user page
- Preview your project and complete the Polar sign-in flow.
For what to do after sign in (roles, private pages, and access checks), see Users and roles overview →.
Common pitfalls
Redirect URI must use https
Polar blocks http:// redirect URIs (except for localhost).
- Use
https://for staging and production./api/auth/callback/polar - If you test locally, use
http://localhost/...only if Polar allows it for your setup.
Redirect URI mismatch
If Polar shows a redirect URI error, the registered URI does not match the one your app is using.
- In Polar, confirm the exact redirect URI is registered (including
https://and the full path). - Make sure you are testing on the same domain you registered (preview vs production).
Reference
WeWeb settings
| Setting in WeWeb | Description | Where to find it in Polar |
|---|---|---|
Client ID | Identifies your Polar OAuth client. | Polar OAuth settings (Client ID). |
Client Secret | Secret used to securely complete sign in. | Polar OAuth settings (Client Secret). |
FAQs
Which redirect URI should I add in Polar?
Add https://<your-domain>/api/auth/callback/polar. Add one redirect URI per environment you use.
What provider value should I use in the workflow action?
Use polar as the Provider value in the Sign in with social provider action.

