You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(clerk-js): Handle PSU and MFA flows for <GoogleOneTap/> (clerk#3250)
* feat(clerk-js): WIP PSU
* chore(clerk-js): WIP exclude pages
* feat(clerk-js): Handle PSU and MFA flows with GoogleOneTap
* feat(clerk-js): Handle after sign in/up after one tap
- Use buildURLWithAuth
- Build urls with correct redirect urls when leaving app for AP
* feat(clerk-js): GoogleOneTap return back to same location
* chore(clerk-js): Cleanup code
* fix(clerk-js): Set active with correct session from sign up
* chore(clerk-js): Cleanup
* chore(clerk-js): Cleanup
* chore(clerk-js): Mark as deprecated
* chore(clerk-js): Add changeset
* chore(*): Revert playground changes
* fix(clerk-js): Drop `returnToCurrentLocation`
* chore(clerk-js): Add support for `itpSupport` and `fedCmSupport` props
* chore(clerk-js): Update changeset
Updates related to experimental Google One Tap support
7
+
- By default we are returning back to the location where the flow started.
8
+
To accomplish that internally we will use the redirect_url query parameter to build the url.
9
+
```tsx
10
+
<__experimental_GoogleOneTap />
11
+
```
12
+
13
+
- In the above example if there is a SIGN_UP_FORCE_REDIRECT_URL or SIGN_IN_FORCE_REDIRECT_URL set then the developer would need to pass new values as props like this
14
+
```tsx
15
+
<__experimental_GoogleOneTap
16
+
signInForceRedirectUrl=""
17
+
signUpForceRedirectUrl=""
18
+
/>
19
+
```
20
+
21
+
- Let the developer configure the experience they want to offer. (All these values are true by default)
22
+
```tsx
23
+
<__experimental_GoogleOneTap
24
+
cancelOnTapOutside={false}
25
+
itpSupport={false}
26
+
fedCmSupport={false}
27
+
/>
28
+
```
29
+
30
+
- Moved authenticateWithGoogleOneTap to Clerk singleton
31
+
```ts
32
+
Clerk.__experimental_authenticateWithGoogleOneTap
33
+
```
34
+
35
+
- Created the handleGoogleOneTapCallback in Clerk singleton
0 commit comments