🚚 Rename package

This commit is contained in:
2024-04-13 13:48:19 +08:00
parent d1f54099c4
commit e5d53ab77b
43 changed files with 94 additions and 94 deletions

View File

@ -1,5 +1,5 @@
{
"name": "@hydrogen/identity",
"name": "@hydrogen/passport",
"version": "1.0.0",
"type": "module",
"scripts": {

View File

@ -16,11 +16,11 @@ const defaultUserinfo: Userinfo = {
}
export function getAtk(): string {
return new Cookie().get("identity_auth_key")
return new Cookie().get("passport_auth_key")
}
export function checkLoggedIn(): boolean {
return new Cookie().get("identity_auth_key")
return new Cookie().get("passport_auth_key")
}
export const useUserinfo = defineStore("userinfo", () => {