From 971b7607923e98ba08ff42a9e4e0e9cd0202eb49 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 30 Jul 2022 23:13:03 +0200 Subject: [PATCH] fix(webapp): anonymous session not working --- src/components/services/appwrite.service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/services/appwrite.service.ts b/src/components/services/appwrite.service.ts index 4b31fa0..f97196a 100644 --- a/src/components/services/appwrite.service.ts +++ b/src/components/services/appwrite.service.ts @@ -3,16 +3,14 @@ import { Client, Account } from 'appwrite'; const sdk = new Client(); sdk - .setEndpoint('http://192.168.178.88/v1') + .setEndpoint('http://192.168.1.104/v1') .setProject('62dfc94a1637dc23acbc'); export const AppwriteService = { getSDK(): Client { // TODO Authenticate const account = new Account(sdk); - if(!account.getSession('current')) { - account.createAnonymousSession(); - } + account.createAnonymousSession(); return sdk; }, }; \ No newline at end of file