April 2022 Summaries
2 posts from SuperTokens
Filter
Month:
Year:
Post Summaries
Back to Blog
The blog provides a comprehensive guide on setting up the SuperTokens core service with MySQL and PostgreSQL databases for self-hosting, offering various configurations with and without Docker. It details multiple approaches to connect SuperTokens to these databases, including running both components natively on Linux, using Docker, and employing Docker Compose, and specifies steps for creating necessary databases and users, adjusting configuration files, and verifying successful setup. The guide emphasizes the need to reference the SuperTokens documentation and notes potential syntax differences for Windows users, ensuring adaptability across different operating systems while highlighting the importance of network configurations for Docker-based setups.
Apr 24, 2022
2,606 words in the original blog post.
This tutorial provides a step-by-step guide for integrating SuperTokens authentication into a React and NodeJS application, followed by deployment on Vercel. It begins by directing users to choose a login method from the SuperTokens Recipe Guides and outlines the process for restructuring the application to fit Vercel's deployment model, including creating an API folder for the backend logic. The guide emphasizes configuring appInfo settings to dynamically adjust for Vercel's changing URLs, using environment variables on the backend and window.location.origin on the frontend. It also advises updating CORS middleware to accommodate Vercel's URL. The tutorial concludes with instructions for creating a vercel.json file to ensure proper routing of traffic to the backend server and executing the deployment with the vercel command. Additionally, a demo app is available on GitHub, showcasing the integration with Email Password login and express, configured for Vercel deployment.
Apr 14, 2022
716 words in the original blog post.