fix: Remove ability to use GET for RPC API requests by default (#4042)

* fix: Remove ability to use GET for RPC API requests by default

* tsc
This commit is contained in:
Tom Moor
2022-09-02 10:05:40 +02:00
committed by GitHub
parent 2d29f0f042
commit c85f3bd7b4
10 changed files with 85 additions and 31 deletions

View File

@@ -6,12 +6,14 @@ export enum AuthenticationType {
APP = "app",
}
export type AuthenticatedState = {
user: User;
token: string;
authType: AuthenticationType;
};
export type ContextWithState = Context & {
state: {
user: User;
token: string;
authType: AuthenticationType;
};
state: AuthenticatedState;
};
type BaseEvent = {