question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SvelteKit Authentication not working on Safari

See original GitHub issue

I very much hope for your support. My application works without problems, but the login via the browsers of mobile devices does not work. Nothing happens after the login and the redirect.

  • I have implemented sveltekit auth according to the instructions.
  • i have also compared the example.

Repo

Is this problem already known? Thanks a lot!

{
	"name": "myapp",
	"version": "0.0.1",
	"type": "module",
	"scripts": {
		"dev": "vite dev --port 3000",
		"build": "vite build",
		"package": "svelte-kit package",
		"preview": "vite preview",
		"prepare": "svelte-kit sync",
		"check": "svelte-check --tsconfig ./jsconfig.json",
		"check:watch": "svelte-check --tsconfig ./jsconfig.json --watch",
		"test": "playwright test",
		"lint": "prettier --check --plugin-search-dir=. . && eslint .",
		"format": "prettier --write --plugin-search-dir=. .",
		"start": "node build/index.js"
	},
	"devDependencies": {
		"@playwright/test": "^1.22.2",
		"@sveltejs/adapter-node": "1.0.0-next.81",
		"@sveltejs/kit": "next",
		"@tailwindcss/typography": "^0.5.4",
		"autoprefixer": "^10.4.7",
		"daisyui": "^2.19.0",
		"eslint": "^8.16.0",
		"eslint-config-prettier": "^8.3.0",
		"eslint-plugin-svelte3": "^4.0.0",
		"mdsvex": "^0.10.6",
		"postcss": "^8.4.14",
		"postcss-load-config": "^4.0.1",
		"prettier": "^2.6.2",
		"prettier-plugin-svelte": "^2.7.0",
		"svelte": "^3.44.0",
		"svelte-check": "^2.7.1",
		"svelte-preprocess": "^4.10.7",
		"tailwindcss": "^3.1.5",
		"typescript": "^4.7.4",
		"vite": "^3.0.0"
	},
	"dependencies": {
		"@supabase/auth-helpers-svelte": "^0.4.5",
		"@supabase/auth-helpers-sveltekit": "^0.6.8",
		"@supabase/supabase-js": "^1.35.4",
		"@tiptap/core": "^2.0.0-beta.182",
		"@tiptap/extension-placeholder": "^2.0.0-beta.53",
		"@tiptap/starter-kit": "^2.0.0-beta.191",
		"@tiptap/vue-3": "^2.0.0-beta.96",
		"html-to-text": "^8.2.0"
	}
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tguelcancommented, Jul 28, 2022

@akiarostami in the meantime, the issue had actually disappeared. currently, it is present again without me having changed anything in the authentication.

The issue now also appears on safari desktop. For me, the redirect to safari does not work at all.

0reactions
thorwebdevcommented, Sep 28, 2022

@tguelcan with your workaround, are we able to close out this issue, or do you still consider this a bug? I’m going to close it, but please reopen if you consider this still needs to be adressed. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SvelteKit: Not found: /auth/signin Not found: /auth/signout #6185
We are seeing Error: Not found: /auth/signin and Error: Not found: /auth/signout errors in the browser console. but the route still works. I ......
Read more >
Working around HttpOnly cookie problems in SvelteKit
The client calls the external login endpoint via a SvelteKit endpoint; The external endpoint no longer returns a set-cookie header but ...
Read more >
Server requests with cookies solved? : r/sveltejs - Reddit
Hi, has anyone a workaround for this? https://github.com/sveltejs/kit/issues/672 I have set cookies (yes, it is set in the browser with long ...
Read more >
Few things to know before launching a SvelteKit app in prod
It works in Chrome and Safari but, breaks in Firefox and with "break" I mean ... Issue: https://github.com/sveltejs/kit/issues/3558 * * As workaround: *...
Read more >
Sveltekit not running JavaScript on iOS - Stack Overflow
I was able to find your repo on GitHub and found the issue - the following expressions throw an error in Safari. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found