diff --git a/src/runtime.ts b/src/runtime.ts index ec6ff2a..8f526eb 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -35,7 +35,7 @@ export const plugin: RuntimePlugin = settings => project = }, typeGen: { fields: { - 'token': 'string | null' + 'token': settings.tokenType || 'string | null' } } }, diff --git a/src/settings.ts b/src/settings.ts index 051e76d..fa055c0 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -5,5 +5,6 @@ export type Settings = { protectedPaths?: string[]; useCookie?: boolean; cookieName?: string; + tokenType?: string; verify?: (req: Request) => Promise | any; };