Skip to content

amitkhairnar44/supabase_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supabase_auth

A Supabase Auth Dart package.

Usage

import 'package:supabase_auth/supabase_auth.dart';

// Initialise auth with apikey and url provided by Supabase
var _auth = SupabaseAuth(apiKey: YOUR_APIKEY, supabaseUrl: SUPABASE_URL);

// Sign up user using email and password
var user = await _auth.signUp(email: "[email protected]",password: "yourpassword");

// Sign in using email and password
// This will return userCredentials such as access token, refresh token alongwith current user
var userCredential = await _auth.signIn(email: "[email protected]",password: "yourpassword");

Logout

// This will logout current user
_auth.logout();

Releases

No releases published

Packages

No packages published

Languages