host
This commit is contained in:
parent
d51f5ea7a0
commit
5ae6f8fc40
|
@ -10,6 +10,8 @@ export default async (req, res) => {
|
|||
res.setHeader("Set-Cookie", header["set-cookie"]);
|
||||
res.redirect(req.query.return_to ?? "/");
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
||||
// credentials were correct but accounts service failed
|
||||
res.redirect("/.ory/kratos/public/self-service/browser/flows/logout");
|
||||
}
|
||||
|
|
|
@ -32,6 +32,8 @@ export async function getServerSideProps(context) {
|
|||
|
||||
throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
||||
return {
|
||||
redirect: {
|
||||
permanent: false,
|
||||
|
|
Reference in New Issue