-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feat server side rendering #7
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const email = data.get("email") as string; | ||
const password = data.get("password") as string; | ||
|
||
const { account } = createAdminClient(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@loks0n Apologies since I'm not 100% on Astro, but wouldn't this be insecure using the admin client on a front-end page (Exposing the appwrite key..?) ? You'd need to use sdk-for-web, create a client for that and call that sign in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code inside ---
runs on the server.
See https://docs.astro.build/en/basics/astro-components/#the-component-script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code inside
---
runs on the server.See https://docs.astro.build/en/basics/astro-components/#the-component-script
Cool, thanks for clarifying. Only just started looking at Astro!
No description provided.