Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 484 Bytes

storage.md

File metadata and controls

24 lines (19 loc) · 484 Bytes

Storage

import { Authllizer, LocalStorage, SessionStorage } from '@authllizer/core';

let authllizer: Authllizer = new Authllizer({
    storage: new LocalStorage(), // the default is LocalStorage
    // ...
});

// you can change it
authllizer.config({
    storage: new SessionStorage()
});

or you can create an storage according to your needs

import { Authllizer, IStorage } from '@authllizer/core';

export class SomeStorage implements IStorage{
    // ...
}