PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Using devdojo auth for API's

michael31

Jul 7th, 2024 09:49 AM

Hi I'm trying out devdojo auth, and it works great out of the box. However, my use case is an application with laravel as pure api backend and 3 separate Vue applications that will need authentication and authorization. I've tried setting it up using fortify, but it's not easy if you also want 2FA and maybe social login (although that is not strictly needed). The docs mostly approach this as a frontend that will at least be hydrated in the backend and/or will generate (parts of) the frontend.

Reading about devdojo auth I can't find anything on using it for API authentication. Can anyone tell me if it's possible, or should I best go for standard Laravel solutions like fortify, sanctum, passport and socialite?

bobbyiliev

Jul 8th, 2024 02:29 AM

Hey 👋

Using the DevDojo Auth with Laravel for API authentication can be a bit tricky since its primary design is for web applications with built-in frontend components.

Feel free to open a feature request on the Auth GitHub repository providing as much information as possible. Or alternatively, feel free to submit a PR adding that functionality as well.

https://github.com/thedevdojo/auth/issues

- Bobby