-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add signOut
to the client functions
#180
Comments
<Button onClick={signOut}>
Sign Out
</Button> |
Maybe it's just my setup, but I get this error:
It does appear I can fix this by altering my webpack config, but I wonder if that's totally necassary: webpack: (config) => {
config.externals.push({
'node:crypto': 'commonjs crypto',
'node:https': 'commonjs https',
'node:http': 'commonjs http',
});
return config;
}, |
What version are you using? I wonder if #147 helps your case |
|
It seems that Webpack 5 removed the auto polyfills for these node internals, so this is likely the correct fix, but it may be helpful to make a note of this in the docs if so. |
Quite a bit of my app is done in client components behind auth. It would be great if there was a provided function to destroy the session cookie from the client since server components can't be placed inside of client components.
The text was updated successfully, but these errors were encountered: