🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@intent-driven/auth

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intent-driven/auth

Auth-провайдеры для IDF (JWT, Supabase) + React hook useAuth

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

@intent-driven/auth

Auth-провайдеры для IDF.

// JWT (own backend)
import { createJwtAuth } from "@intent-driven/auth/jwt";
const auth = createJwtAuth({ signInUrl: "https://api.example.com/auth/login" });

// Supabase
import { createClient } from "@supabase/supabase-js";
import { createSupabaseAuth } from "@intent-driven/auth/supabase";
const supa = createClient(URL, KEY);
const auth = createSupabaseAuth(supa);

// React
import { useAuth } from "@intent-driven/auth/react";
const { user, token, signIn, signOut, loading } = useAuth(auth);

Provider API:

interface AuthProvider {
  getToken(): Promise<string | null>;
  getUser(): Promise<User | null>;
  signIn(credentials): Promise<{ user, token }>;
  signOut(): Promise<void>;
  onChange(listener): () => void; // unsubscribe
}

Keywords

intent-driven

FAQs

Package last updated on 21 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts