fix: 登录页面

This commit is contained in:
imeepos
2026-01-13 15:55:52 +08:00
parent a2ba14d312
commit 1a6df3c806
6 changed files with 91 additions and 35 deletions

View File

@@ -83,6 +83,9 @@ export const authClient = createAuthClient({
storage,
scheme: 'duooomi',
fetchOptions: {
headers: {
"x-ownerid": ""
},
auth: {
type: 'Bearer',
token: async () => {

View File

@@ -1,15 +1 @@
import * as SecureStore from "expo-secure-store";
export const storage = {
async getItem(key: string): Promise<string | null> {
return await SecureStore.getItemAsync(key);
},
async setItem(key: string, value: string): Promise<void> {
await SecureStore.setItemAsync(key, value);
},
async removeItem(key: string): Promise<void> {
await SecureStore.deleteItemAsync(key);
},
};