Get started with Nube Auth's hosted service.
Getting Started
- Create an account at nubeauth.com
- Create a new project and app
- Get your App ID from the dashboard
- Install the SDK and start building
Install the SDK
bash
npm install @nube-auth/sdkOr with your preferred package manager:
bash
# pnpm
pnpm add @nube-auth/sdk
# yarn
yarn add @nube-auth/sdkQuick Setup
typescript
import { NubeAuthClient } from '@nube-auth/sdk';
const nubeAuth = new NubeAuthClient({
appId: 'your-app-id',
apiUrl: 'https://api.nubeauth.com'
});
// Start OAuth login
await nubeAuth.login({ provider: 'google' });
// Get current user
const user = await nubeAuth.getUser();Next Steps
- Configuration - Configure your environment
- OAuth Providers - Set up authentication providers
