@accounts/client
Version:
Fullstack authentication and accounts-management
20 lines (18 loc) • 447 B
text/typescript
import { TokenStorage } from '.';
export interface AccountsClientOptions {
/**
* Storage that accounts-js will use to store the tokens.
* Default: 'localStorage'.
*/
tokenStorage?: TokenStorage;
/**
* Token that will prefix the storage key.
* Default: 'accounts'.
*/
tokenStoragePrefix?: string;
/**
* Token that will separate the storage key and value.
* Default: ':'.
*/
tokenStorageSeparator?: string;
}