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

Using it as a news feed without auth #60

Open
danfascia opened this issue Apr 8, 2022 · 5 comments
Open

Using it as a news feed without auth #60

danfascia opened this issue Apr 8, 2022 · 5 comments

Comments

@danfascia
Copy link

I know it is fundamentally designed as an internal team tool but is also very appealling as just a changelog / public feed with an easy authoring interface.

Is there a simple way to disable the whole auth thing and just have it public facing?

@bogdansoare
Copy link
Contributor

Hey @danfascia, unfortunately, there is no easy way to remove the auth system since it's involved in a lot of places.

I would suggest the first step to update the Prisma schema by removing everything related to Account/User/Session.

After that would be removing next-auth and the auth redirects.

Hope it helps.

@nmandal
Copy link

nmandal commented Apr 19, 2022

Interested in this too. However instead of removing Account/User/Session, allowing visitors to see the content of a post or the feed. The visitor would then need to sign in if they wanted to like, comment, etc.

Will look into this, but any thoughts on direction to take here? Getting rid of the requirement to have a session in a request?

@alanphanth
Copy link

I have the same interest.

@danfascia
Copy link
Author

Shame it's not easy, but I totally understand why.

I wonder if conditionalising each call to check auth against a global variable may be a less destructive way forward since many will want to keep auth. If we set a global authentication: true/false and checked the calls against if (auth) that could work ?

@thejessewinton
Copy link
Contributor

How viable would it be to create a simple cli app, like create-t3-app that would allow for users to choose the use case? It might be overkill, but could potentially solve the problem. Maybe with clack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants