Skip to content

@labdigital/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 20 May 06:34
· 22 commits to main since this release

Major Changes

  • fdde268: Remove the deprecated CookieTokenSource from @labdigital/federated-token, this is available from @labdigital/federated-token-express-adapter
  • abf409b: Switch to ESM only builds

Minor Changes

  • 3d5baf8: Add ability to set custom expires time for the various cookies. For example:

    const cookieTokenSource = new CookieTokenSource({
      secure: true,
      sameSite: "strict",
      refreshTokenPath: "/refresh",
      userToken: {
        expiresIn: 30 * 24 * 60 * 60, // 30 days
      },
    });

    This will set the user token cookie to expire in 30 days. The default value is when
    the browser is closed.

Patch Changes