Skip to content

Bear Auth v3.0.8

Choose a tag to compare

@cermakjiri cermakjiri released this 01 Aug 12:52
· 22 commits to main since this release
  • 613065e ✨ Return the same promise when calling async fn multiple times
  • 831e703 ♻️ Refactor state management, fix race-condition issue
  • 41a11f2 ✨ Enhance continueWhenOnline to accept task names & use continueWhenOnline in fetchAuthInfo too
    import { setContinueWhenOnline } from '@bear-auth/core';
    
    setContinueWhenOnline('myInstance', async taskName => {
        // Set custom code to tell the Bear Auth when the app is online and can proceed with given task.
        // Optionally, you can decide based on the `taskName` ('logout', 'refreshToken', etc.)
    });

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