Skip to content

Commit

Permalink
Update oauth and web support
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Jul 15, 2024
1 parent efa174f commit 4dd5f44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,6 @@
},
{
"title": "Expo web support",
"tag": "(New)",
"href": "/docs/references/expo/expo-web-support"
}
]
Expand Down
3 changes: 2 additions & 1 deletion docs/references/expo/expo-oauth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import * as WebBrowser from "expo-web-browser";
import { Text, View, Button } from "react-native";
import { Link } from "expo-router";
import { useOAuth } from "@clerk/clerk-expo";
import * as Linking from "expo-linking"

export const useWarmUpBrowser = () => {
React.useEffect(() => {
Expand All @@ -48,7 +49,7 @@ const SignInWithOAuth = () => {
const onPress = React.useCallback(async () => {
try {
const { createdSessionId, signIn, signUp, setActive } =
await startOAuthFlow({ redirectUrl: "/dashboard" });
await startOAuthFlow({ redirectUrl: Linking.createURL("/dashboard") });

if (createdSessionId) {
setActive!({ session: createdSessionId });
Expand Down
2 changes: 1 addition & 1 deletion docs/references/expo/expo-web-support.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
description: Learn how to add web support to your Expo project with Clerk.
description: Add web support to your Expo project with Clerk.
---

# Expo web support
Expand Down

0 comments on commit 4dd5f44

Please sign in to comment.