Skip to content

v0.8: User Import, Custom Translations

Compare
Choose a tag to compare
@like-a-bause like-a-bause released this 06 Jul 12:12
· 362 commits to main since this release
43e2897

In this release we consolidated the version numbers of the hanko backend and hanko-elements and the frontend-sdk, so it's clear which components work together. On top of that we introduce several small features. Some of the highlights are:

  • Custom translations for hanko-elements
  • User import
  • Improved events in hanko-elements
  • Documentation for creating a nuxt app with hanko. The nuxt module can be found here. Thanks to @danielroe and @McPizza0
  • New example: deno/fresh. Thanks to @tobihans

Migrating from hanko-elements v0.5.5 to v0.8.0

The "onSessionResumed" and "onSessionIsNotPresent" events have been removed. To determine the session validity, the frontend-sdk can now be used as follows:

import {register} from "@teamhanko/hanko-elements";

const apiUrl = "...";

const {hanko} = await register(apiUrl);

const isValid = hanko.session.isValid(); // Performs a client-side check if the session is valid, returns a boolean.
const session = hanko.session.get();     // Returns an object containing the `userID`, `expirationSeconds` and the `jwt`.

What's Changed

New Contributors

Full Changelog: backend/v0.7.1...backend/v0.8.0