Bear Auth v3.0.9
·
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