triniwiz / triniwiz/nativescript-plugins

[supabase] ReferenceError: isAuthError is not defined

Open
#213 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
87
Forks
57
Avg merge
1h 36m
Merged PRs (30d)
4

Description

I have recently updated my packages:

 		"nativescript-nfc-fix": "^5.1.0",
 		"nativescript-open-inbox": "^1.0.2",
 		"nativescript-vibrate": "^4.0.1",
-		"nativescript-vue": "3.0.0-rc.2",
+		"nativescript-vue": "3.0.0",
 		"nativescript-windowed-modal": "^7.0.0",
 		"node-html-markdown": "^1.3.0",
-		"pinia": "2.3.0",
+		"pinia": "3.0.1",
 		"postcss-loader": "^8.1.1",
 		"router-vue-native": "^2.1.0",
-		"sass-loader": "^16.0.4",
-		"ts-loader": "^9.5.1",
+		"sass-loader": "^16.0.5",
+		"ts-loader": "^9.5.2",
 		"tslib": "^2.8.1",
 		"turndown": "^7.2.0"
 	},
@@ -71,34 +71,30 @@
 		"@nativescript-community/set-version": "^1.0.5",
 		"@nativescript-dom/core-types": "^1.0.31",
 		"@nativescript-dom/vue-types": "^1.0.16",
-		"@nativescript/android": "~8.8.6",
+		"@nativescript/android": "~8.9.1",
 		"@nativescript/eslint-plugin": "^0.0.4",
-		"@nativescript/ios": "~8.8.2",
+		"@nativescript/ios": "~8.9.2",
 		"@nativescript/tailwind": "^2.1.0",
-		"@nativescript/types": "^8.8.0",
-		"@nativescript/webpack": "~5.0.22",
-		"@types/lodash": "^4.17.13",
-		"@types/node": "22.10.2",
+		"@nativescript/types": "^8.9.1",
+		"@nativescript/webpack": "~5.0.24",
+		"@types/lodash": "^4.17.16",
+		"@types/node": "22.14.0",
+		"@types/tailwindcss": "^3.1.0",
 		"@types/turndown": "^5.0.5",
-		"@typescript-eslint/eslint-plugin": "^8.18.0",
-		"@typescript-eslint/parser": "^8.18.0",
-		"@vue/typescript-plugin": "^2.1.10",
-		"eslint": "^9.16.0",
-		"eslint-config-prettier": "^9.1.0",
-		"eslint-plugin-prettier": "^5.2.1",
-		"eslint-plugin-vue": "^9.32.0",
+		"@typescript-eslint/eslint-plugin": "^8.29.0",
+		"@typescript-eslint/parser": "^8.29.0",
+		"@vue/typescript-plugin": "^2.2.8",
+		"eslint": "^9.24.0",
+		"eslint-config-prettier": "^10.1.1",
+		"eslint-plugin-prettier": "^5.2.6",
+		"eslint-plugin-vue": "^10.0.0",
 		"nativescript-custom-entitlements": "^0.2.0",
 		"nativescript-vue-router-extended": "^1.1.8",
-		"prettier": "^3.4.2",
+		"prettier": "^3.5.3",
 		"tailwindcss": "^3.4.16",
-		"typescript": "^5.7.2"
+		"typescript": "^5.8.3"
 	},

Code:

	const getUser = async () => {
		try {
			const result = await supabaseClient.auth.getUser()
			if (!result.error && result.data?.user) {
				return result.data.user
			}

		} catch (error) {
			console.log(error)
		}


		return null
	}

I get this error with no traces:

04-07 22:48:54.982 17126 17126 I JS      : CONSOLE LOG: ReferenceError: isAuthError is not defined

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supabaseClient.auth.getUser() call with the listed package upgrades, then inspect the Supabase authentication bundle for the undefined isAuthError reference. Compare the upgraded dependencies against the previous versions and confirm that the call completes without the ReferenceError.

Written by the indexing model from the issue text.

Assessment

Tech stack
supabase, typescript
Domain
authentication, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.