Skip to content

Bear Auth v3.0.9

Choose a tag to compare

@cermakjiri cermakjiri released this 06 Aug 12:46
· 21 commits to main since this release

setAlarmManager

Optionally, you can now override the defaults setTimeout / clearTimeout methods to implement a custom timer, such as:

import { setAlarmManager } from '@bear-auth/core';

setAlarmManager('myInstanceId', {
    async createAlarm(callback, delay) {
        // create alarm, return alarm ID
    },
    async clearAlarm(id) {
        // clear alarm
    },
});

Full Changelog: https://github.com/AckeeCZ/bear-auth/compare/@bear-auth/core@3.0.8...@bear-auth/core@3.0.9