Pricing Blog

Protect Site with Redirect to Login

  • kerikf-1382052119481290803

    Erik Fryscok

    5 months ago

    Got my Nordcraft project wired up with Supabase Auth, but kinda stuck on how to actually protect the site with it.

    Basically, if someone’s not logged in, I want any page they hit to just boot them over to the login page. Simple enough, but I’m not seeing a clean way to do it yet.

    If anyone’s done this before—or has a more Nordcrafty way of handling it—I’m all ears 👍
  • kerikf-1382052766192504972

    Erik Fryscok

    5 months ago

    Ahhh, nvm found this just moments after posting... https://docs.nordcraft.com/connecting-data/advanced-api-features
  • andreasmoller-1382059841060606113

    Andreas Møller

    5 months ago

    👍