Skip to content

v3.2.0

Choose a tag to compare

@stevenclouston stevenclouston released this 07 Jul 01:35
c5c1750

What's new

Adds support for push credential expiry and keep-alive. When a credential lifetime is configured for your tenant, enrolled push credentials expire unless the app keeps them alive.

  • updateCredential now accepts an options object with a resetExpiry flag:

    // Rotate the push token (existing behaviour, unchanged)
    await authsignal.push.updateCredential({ pushToken });
    
    // Keep-alive: reset the credential's expiry lease without changing the token
    await authsignal.push.updateCredential({ resetExpiry: true });