Update labels and refine hooks for teams and billing modules
This commit modifies several language labels and refines hooks related to 'teams' and 'billing' modules for better clarity and consistency. It also includes the deletion of unused locale files and package dependencies transfered to 'peerDependencies'. Lastly, it introduces minor enhancements in server command, error logging functionality, and scripts to interact with Stripe.
This commit is contained in:
@@ -28,7 +28,6 @@ function AuthRedirectListener({
|
||||
useEffect(() => {
|
||||
// keep this running for the whole session unless the component was unmounted
|
||||
const listener = client.auth.onAuthStateChange((_, user) => {
|
||||
console.log(_, user);
|
||||
// log user out if user is falsy
|
||||
// and if the current path is a private route
|
||||
const shouldRedirectUser = !user && isPrivateRoute(pathName);
|
||||
@@ -47,10 +46,6 @@ function AuthRedirectListener({
|
||||
void router.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
if (user && isPrivateRoute(pathName)) {
|
||||
return revalidateUserSession();
|
||||
}
|
||||
});
|
||||
|
||||
// destroy listener on un-mounts
|
||||
|
||||
Reference in New Issue
Block a user