Sign in

Overview

MonoCloud’s JavaScript SDK lets you add authentication to your vanilla JavaScript application.

Use it to:

  • Authenticate users
  • Keep users signed in across page reloads and tabs
  • Access the signed-in user
  • Call your protected APIs with access tokens

The SDK is framework-agnostic. The guides below show plain TypeScript snippets that drop into any vanilla setup (Vite, Webpack, plain <script type="module">, and similar).

Install the SDK

Install the SDK using your package manager:

Terminal
npm install @monocloud/auth-web-js

View the source on GitHub: monocloud/auth-js

Get started quickly

Start with the quickstart to see MonoCloud in action:

The quickstart walks you from a new Vite + TypeScript app to a signed-in user in a few minutes.

Before you continue

To integrate MonoCloud into your own app:

  1. Follow the installation and configuration guide.
  2. Use the guides below to build out your app's authentication flow.

Guides

API Reference

View all exported APIs, types, and interfaces:

© 2024 MonoCloud. All rights reserved.