Skip to content

[Bug?]: No Supabase session found #11962

@ejleis

Description

@ejleis

What's not working?

I have this weird bug that I'm encountering when I use RedwoodJS Supabase Authentication. Whenever I logged in Error No Supabase Session found using a RedwoodJS application. But when using Vanilla JS, I'm connecting just fine with Supabase. .env is also the same used in Vanilla JS and RedwoodJS application. What's more weird regarding this bug is that response is fine and seems to be updated the logged in information on Supabase DB. But error on VS Code Console kept showing No Supabase Session Found.

How do we reproduce the bug?

Below is the link of my Gitpod snapshot:
https://gitpod.io#snapshot/564fca47-dc7b-4ace-889b-f19c35ddf4a5

What's your environment? (If it applies)

Git pod yarn rw info

System:
    OS: Linux 6.1 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.15.1 - /tmp/xfs-45341a72/node
    Yarn: 4.6.0 - /tmp/xfs-45341a72/yarn
  Databases:
    SQLite: 3.37.2 - /usr/bin/sqlite3
  npmPackages:
    @redwoodjs/auth-supabase-setup: 8.5.0 => 8.5.0 
    @redwoodjs/core: 8.5.0 => 8.5.0 
    @redwoodjs/project-config: 8.5.0 => 8.5.0 
  redwood.toml:
    [web]
      title = "Redwood App"
      port = 8910
      apiUrl = "/.redwood/functions" # You can customize graphql and dbauth urls individually too: see https://redwoodjs.com/docs/app-configuration-redwood-toml#api-paths
      includeEnvironmentVariables = ["SUPABASE_URL", "SUPABASE_KEY"]
    [api]
      port = 8911
    [browser]
      open = true
    [notifications]
      versionUpdates = ["latest"]

Local yarn rw info

System:
    OS: Windows 11 10.0.26100
  Binaries:
    Node: 20.18.1 - ~\AppData\Local\Temp\xfs-78b4cf5e\node.CMD
    Yarn: 4.6.0 - ~\AppData\Local\Temp\xfs-78b4cf5e\yarn.CMD
  Browsers:
    Edge: Chromium (131.0.2903.70)
  npmPackages:
    @redwoodjs/auth-supabase-setup: 8.5.0 => 8.5.0
    @redwoodjs/core: 8.5.0 => 8.5.0
    @redwoodjs/project-config: 8.5.0 => 8.5.0
  redwood.toml:
    [web]
      title = "Redwood App"
      port = 8910
      apiUrl = "/.redwood/functions" # You can customize graphql and dbauth urls individually too: see https://redwoodjs.com/docs/app-configuration-redwood-toml#api-paths
      includeEnvironmentVariables = ["SUPABASE_URL", "SUPABASE_KEY"]
    [api]
      port = 8911
    [browser]
      open = true
    [notifications]
      versionUpdates = ["latest"]

Are you interested in working on this?

  • I'm interested in working on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/needs-infoMore information is needed for reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions