Skip to content

Commit dec4338

Browse files
fix: use only supported props for @urbackend/react@0.1.1 UrAuth (providers, theme, onSuccess)
1 parent b7e9055 commit dec4338

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

‎examples/react-sdk-demo/src/App.tsx‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,8 @@ function App() {
4444
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', minHeight: '100vh', background: '#f8fafc' }}>
4545
<UrAuth
4646
providers={['google', 'github']}
47-
branding={{
48-
appName: "My Custom App",
49-
logo: "https://vite.dev/logo.svg",
50-
primaryColor: "#4F46E5",
51-
}}
52-
labels={{
53-
signInTitle: "Welcome back to Custom App",
54-
signInButton: "Proceed to App",
55-
}}
47+
theme="light"
48+
onSuccess={() => navigate('/')}
5649
/>
5750
</div>
5851
</GuestRoute>

0 commit comments

Comments
 (0)