gotrue
2.27.3, released 6 weeks ago by supabase.io
Dart client for Supabase Auth API
What it does
Provides a Dart interface to the Supabase Auth (GoTrue) REST API. It handles sign‑up, sign‑in, token refresh, and user management for Supabase projects.
AI-written summary of version 2.27.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need authentication in a Flutter or Dart app that uses Supabase
- You want a lightweight client without pulling the full Supabase SDK
- You prefer a pure Dart implementation over JavaScript ports
Skip it when
- You are already using the full Supabase package and its auth module
- You need authentication for a non‑Supabase backend
Strengths
- Simple, focused API for Supabase Auth
- MIT licensed and actively maintained
- No heavy dependencies, works on all platforms
Weaknesses
- Only supports Supabase Auth, not other providers
- Requires manual integration if you use other Supabase services
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 8
Alternatives
Packages that do the same job and could replace gotrue.
- supabase_flutter
Flutter client for Supabase providing auth, database, realtime, storage and edge functions.
92Compare - functions_client
Dart client for invoking Supabase Edge Functions.
79Compare - posthog_flutter
Flutter client for PostHog analytics, feature flags, and session replay
84Compare - realtime_client
Dart client for Supabase Realtime, listening to PostgreSQL changes via WebSocket
89Compare
Works with
Packages commonly used together with gotrue: ones it builds on, ones built on it, and its own family.
- cryptogotrue depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- webgotrue depends on itLightweight bindings for browser APIs via JS interop
- logginggotrue depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- dart_jsonwebtokengotrue depends on itA Dart library for creating, signing, decoding and verifying JSON Web Tokens (JWT).
- supabaseBuilt on gotrueDart client for Supabase, usable in non-Flutter Dart environments.