konstantinmuenster / gatsby-theme-portfolio-minimal

A Gatsby Theme to create modern one-page portfolios with a clean yet expressive design.
MIT License
160 stars 90 forks source link

Extending routing with auth ❔ #52

Closed pat-ladon closed 8 months ago

pat-ladon commented 8 months ago

Hi,

Got a question.

Is there a way to extend the routing with authentication? Any tips would be appreciated.

konstantinmuenster commented 8 months ago

Hey! What do you want to use the authentication for? Some further details would help to evaluate the feasibility.

Usually, I'd only like to extend the core theme with features that are helpful for most users. But perhaps you could override some theme functionality to add the authentication.

pat-ladon commented 8 months ago

Thanks for getting back. I would like to see whether I can modify the theme to have blog articles available to authenticated users only. I wonder whether this would be very complicated or somehow feasible. I am testing how to use firebase auth specifically.

konstantinmuenster commented 8 months ago

Thanks for getting back. I would like to see whether I can modify the theme to have blog articles available to authenticated users only. I wonder whether this would be very complicated or somehow feasible. I am testing how to use firebase auth specifically.

Hm, this sounds rather complicated. Have you looked into theme shadowing? That way you could override the theme's functionality.

Since the use-case is quite specific, I don't see this included in the core theme.