mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 10:19:10 +00:00
UI: add auth flow and related errors
This commit is contained in:
parent
ff67bc3f1b
commit
bbb34f1771
6 changed files with 226 additions and 74 deletions
|
@ -1,7 +1,7 @@
|
|||
import Router from 'next/router'
|
||||
|
||||
export default (context, target) => {
|
||||
if (context.res) {
|
||||
if (context && context.res) {
|
||||
// server
|
||||
// 303: "See other"
|
||||
context.res.writeHead(303, { Location: target })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue