feat: Add ctx.state.authType for tracking (#1567)
This commit is contained in:
12
server/types.js
Normal file
12
server/types.js
Normal file
@@ -0,0 +1,12 @@
|
||||
// @flow
|
||||
import { type Context } from "koa";
|
||||
import { User } from "./models";
|
||||
|
||||
export type ContextWithState = {|
|
||||
...$Exact<Context>,
|
||||
state: {
|
||||
user: User,
|
||||
token: string,
|
||||
authType: "app" | "api",
|
||||
},
|
||||
|};
|
||||
Reference in New Issue
Block a user