Skip to content
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

Merged
merged 5 commits into from
Mar 8, 2024
Merged

Feat server side rendering #7

merged 5 commits into from
Mar 8, 2024

Conversation

loks0n
Copy link
Member

@loks0n loks0n commented Jan 30, 2024

No description provided.

Copy link

vercel bot commented Jan 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
demos-for-astro-example-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 4:06pm

const email = data.get("email") as string;
const password = data.get("password") as string;

const { account } = createAdminClient();
Copy link

@Swinkid Swinkid Feb 23, 2024

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.

Copy link
Member Author

@loks0n loks0n Feb 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

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!

@loks0n loks0n merged commit 03b076e into main Mar 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants