From 872e477df85bf94ca12e3264dc8699dbac7c15f5 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 17 Mar 2024 06:53:35 +0000 Subject: [PATCH] add beta and throw exception on oauth 2 session function --- README.md | 4 +++- src/services/account.ts | 7 ++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 38e8c904..7ee16916 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Appwrite React Native SDK +# Appwrite React Native SDK (BETA) ![License](https://img.shields.io/github/license/appwrite/sdk-for-react-native.svg?style=flat-square) ![Version](https://img.shields.io/badge/api%20version-1.4.12-blue.svg?style=flat-square) @@ -12,6 +12,8 @@ Appwrite is an open-source backend as a service server that abstract and simplif ![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png) +> Warning! - OAuth based session creation is not yet supported + ## Installation To install diff --git a/src/services/account.ts b/src/services/account.ts index 29d4b6a7..83251501 100644 --- a/src/services/account.ts +++ b/src/services/account.ts @@ -732,11 +732,8 @@ export class Account extends Service { for (const [key, value] of Object.entries(Service.flatten(payload))) { uri.searchParams.append(key, value); } - if (typeof window !== 'undefined' && window?.location) { - window.location.href = uri.toString(); - } else { - return uri; - } + + throw new AppwriteException('Not yet supported', 500, 'NOT_SUPPORTED'); } /**