This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@logto/sveltekit@0.3.0
Minor Changes
dfcfcd6: introduce custom local storage support and error handling for getUserInfo
Introduce a new storage option in hookConfig that allows a custom local storage to be passed into logtoClient. This will supersede the default CookieStorage for storing session and token data. If a custom storage is provided, the cookieConfig settings can be disregarded.
Incorporate a new onGetUserInfoError callback in hookConfig for custom error handling when getUserInfo or getIdTokenClaims operations fail. By default, a 500 server error will be thrown.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@logto/sveltekit@0.3.0
Minor Changes
dfcfcd6: introduce custom local storage support and error handling for getUserInfo
storage
option inhookConfig
that allows a custom local storage to be passed intologtoClient
. This will supersede the defaultCookieStorage
for storing session and token data. If a customstorage
is provided, thecookieConfig
settings can be disregarded.onGetUserInfoError
callback inhookConfig
for custom error handling whengetUserInfo
orgetIdTokenClaims
operations fail. By default, a 500 server error will be thrown.