Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Phoenix generators for authentication strategies #4

Open
zoedsoupe opened this issue Jan 7, 2025 · 0 comments
Open

Support Phoenix generators for authentication strategies #4

zoedsoupe opened this issue Jan 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@zoedsoupe
Copy link
Collaborator

Feature request

Is your feature request related to a problem? Please describe.

The current issue is that the usage of this integration with supabase-ex in phoenix and plug based projects are kinda... cumbersome I would say.

so the idea here is to simplify the implementation and avoid massive meta-programming couple features to actually use different authentication strategies, while also simplifying the migration from phx.gen.auth.

Describe the solution you'd like

to achieve this we need to implement the generators like phoenix does, maybe something

mix gotrue.gen.auth -s oauth -p apple

whether -s stands for --strategy and -p for --provider.

so for each strategy we can implement a custom generator and it should use live view as default but we can think to implement dead view support in the future.

also, we can check https://github.com/ash-framework/igniter for some inspiration ^-^

Describe alternatives you've considered

N/A

Additional context

@zoedsoupe zoedsoupe added the enhancement New feature or request label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant