Vite JavaScript Example
This guide demonstrates how to integrate Stack Auth with Vite. The same principles apply to other JavaScript frameworks as well. You can find the complete example code in our GitHub repository.
Initialize the app
stack/client.ts
Index page with user information
index.html
Sign in with password
password-sign-in.html
Sign up with password
password-sign-up.html
Sign in with OTP/Magic Link
otp-sign-in.html
OAuth sign in
oauth.html