Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
token type workaraound (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
homerjam authored Sep 17, 2020
1 parent 51eff43 commit 1c49664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const plugin: RuntimePlugin<Settings, 'required'> = settings => project =
},
typeGen: {
fields: {
'token': 'string | null'
'token': settings.tokenType || 'string | null'
}
}
},
Expand Down
1 change: 1 addition & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export type Settings = {
protectedPaths?: string[];
useCookie?: boolean;
cookieName?: string;
tokenType?: string;
verify?: (req: Request) => Promise<any> | any;
};

0 comments on commit 1c49664

Please sign in to comment.