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/nuxt@0.2.0
Minor Changes
3ba2e81: return undefined when fetchUserInfo failed
When fetchUserInfo is set to true, useLogto() will call fetchUserInfo to get user info. If fetchUserInfo failed, it now returns undefined instead of throwing an error.
You can check the value of userLogto() to see if the user is authenticated.
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/nuxt@0.2.0
Minor Changes
3ba2e81: return undefined when fetchUserInfo failed
When
fetchUserInfo
is set totrue
,useLogto()
will callfetchUserInfo
to get user info. IffetchUserInfo
failed, it now returnsundefined
instead of throwing an error.You can check the value of
userLogto()
to see if the user is authenticated.