Skip to content

Commit 4374642

Browse files
Add destructuring to access state in onRedirectCallback example in README (#67)
1 parent 3a3aeed commit 4374642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function App() {
146146
<AuthKitProvider
147147
clientId="client_123"
148148
apiHostname="auth.example.com"
149-
onRedirectCallback={(state) => {
149+
onRedirectCallback={({ state }) => {
150150
// Access your data here
151151
if (state?.returnTo) {
152152
window.location.href = state.returnTo;

0 commit comments

Comments
 (0)