Skip to content

Commit d0b65a4

Browse files
committed
Tweaks and updates
1 parent ebdc63e commit d0b65a4

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

docs/tools/funnels/creating-funnels.mdx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,21 @@ Once added, the authentication step will appear as a node in your funnel flow. W
8585

8686
#### Setting up the redirect flow
8787

88-
When a user reaches an authentication step, RevenueCat will redirect them to your external authentication URL with two query parameters:
88+
After adding an authentication step, configure where users will be sent to authenticate:
89+
90+
1. Click on the authentication step node in Interaction mode
91+
2. In the right panel, enter your **External authentication URL**
92+
3. This should be the URL of your authentication page (e.g., `https://your-auth-system.com/login`)
93+
94+
When a user reaches this authentication step, RevenueCat will redirect them to your external authentication URL with two query parameters:
8995

9096
- `redirect_uri`: The callback URL where you must redirect users after authentication
9197
- `state`: A token used to tie the session together (you must return this unchanged)
9298

9399
**Example redirect URL your authentication page will receive:**
94100

95101
```
96-
https://your-auth-system.com/login?redirect_uri=https://signup.cat/funnel/callback&state=eyJub25jZSI6IjEyMyIsIndvcmtmbG93X2xpbmtfaWQiOi4uLn0=
102+
https://your-auth-system.com/login?redirect_uri=https%3A%2F%2Fsignup.cat%2Ffunnel%2Fcallback&state=eyJub25jZSI6IjEyMyIsIndvcmtmbG93X2xpbmtfaWQiOi4uLn0=
97103
```
98104

99105
#### Redirecting back to the funnel
@@ -110,19 +116,12 @@ https://signup.cat/funnel/callback?state=eyJub25jZSI6IjEyMyIsIndvcmtmbG93X2xpbmt
110116
```
111117

112118
:::warning State parameter is required
113-
You must include the `state` parameter exactly as you received it. Do not modify or parse this value—simply pass it back unchanged.
119+
You must include the `state` parameter exactly as you received it. Do not modify this value or RevenueCat validation will fail.
114120
:::
115121

116-
#### Callback URL handling
117-
118-
The `redirect_uri` parameter will always point to `/funnel/callback` on the appropriate domain:
119-
120-
- **Default domain**: `https://signup.cat/funnel/callback`
121-
- **Custom domain**: `https://your-domain.com/funnel/callback` (if you have custom domains configured)
122-
123-
You can either:
124-
- Use the `redirect_uri` parameter dynamically in your redirect
125-
- Hard-code the callback URL if you know your domain configuration
122+
:::info Callback URL
123+
The `redirect_uri` parameter will always point to `/funnel/callback` on the appropriate domain (`https://signup.cat/funnel/callback` by default, or your custom domain if configured). You can either use the `redirect_uri` parameter dynamically in your redirect or hard-code the callback URL if you know your domain configuration.
124+
:::
126125

127126
#### Auto-advance for authenticated users
128127

0 commit comments

Comments
 (0)