Skip to content

Commit

Permalink
feat: add provider option to ModuleOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hkp22 committed Oct 29, 2024
1 parent adfeb90 commit ce5198e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/runtime/types/ModuleOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ export interface ModuleOptions {
*/
storageKey: string;

/**
* The storage provider to use for the token.
* @default 'cookie'
*/
provider: 'cookie' | 'localStorage';

/**
* This option specifies the key used to retrieve the authentication token
* from the response of the `sanctumEndpoints.login` API.
Expand All @@ -73,12 +79,6 @@ export interface ModuleOptions {
* @default 'token'
*/
responseKey: string;

/**
* The storage provider to use for the token.
* @default 'cookie'
*/
provider: 'cookie' | 'localStorage';
};

/**
Expand Down

0 comments on commit ce5198e

Please sign in to comment.