The setup will automatically take care of configurations and credentials. If you would instead prefer to do it all manually, Click here. Every authent

nextfirejs

submited by
Style Pass
2024-06-23 18:30:02

The setup will automatically take care of configurations and credentials. If you would instead prefer to do it all manually, Click here.

Every authentication page is editable and is placed under components/nextfirejs/. You can edit any of them and make use of the client components to connect with authentication functionalities. (Written below)

NOTE: allowRules parameter takes presedence over the other parameters. Meaning, if it is specified, all other parameters will be ignored. NOTE: Make sure to allow _next/* for almost all circumstances, as _next is mostly used for public purposes

On client side, the auth state could be accessed from any page/component using the function getUserCS(); (Stands for "Get User (Client Side)")

On server side, the auth state could be accessed from any server side page or any API or function call! Yes! Out of the box. Just use the function getUserSS();. (Stands for "Get User (Server Side)"

The service account keys are stored in the root of project as "firebase-service-account.json". However, this is highly sensitive and should not be pushed to version control.

Leave a Comment
Related Posts