Skip to content

Commit bca4a88

Browse files
authored
Update google config
1 parent 60a4de1 commit bca4a88

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/google.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ export default buildConfig({
3535
const user = await response.json();
3636
return { email: user.email, sub: user.sub };
3737
},
38-
successRedirect: () => "/admin",
39-
failureRedirect: () => "/login",
38+
successRedirect: (req) => {
39+
return "/admin";
40+
},
41+
failureRedirect: (req, error) => {
42+
console.error(error);
43+
return "/login";
44+
},
4045
}),
4146
],
4247
// ...

0 commit comments

Comments
 (0)