This repository was archived by the owner on Jan 23, 2026. It is now read-only.
v2.0.0
2.0.0 (2022-10-11)
Bug Fixes
- _getSessionFromUrl() test (4838a4b)
- add AuthResponse type (d7881b3)
- add ban_duration (ea900c7)
- add custom error classes (0e0cac4)
- add option to pass in data (d728b6f)
- allow custom storage key in localstorage (9335ccc)
- await _saveSession and _removeSession (ebf4ce4)
- await getSessionFromUrl in _recoverAndRefresh (4506866)
- change setSession to take in an access token (ed87b76)
- change setSession to take in an object (f7e3bc1)
- clean up signInWithOAuth types (ef1011f)
- clean up signInWithOAuth types (9fce93e)
- cleanup localStorage session format (a93adc6)
- cleanup type docs (0fe005c)
- correct typo (828b0b3)
- destructure currentSession from persistedSession (420b71f)
- distinguish between malformed urls and errors (5db69b0)
- don't throw errors in constructor (250923e)
- export errors (4c07a72)
- fix broken test (fc7ac57)
- fix test for json error response (06746fe)
- fix ts error introduced with prettier changes (709e3f4)
- fixes exponential backoff upon token refresh (01e39c6)
- getSession() read from localStorage every time (e18334e)
- getUser should accept jwt (7a7075f)
- getUser should default to authorization header (9e8d89f)
- handle custom fetch response in error handler (7371ad6)
- ignore no-extra-semi (8ed1dd7)
- make types tigher for generateLink (07adc58)
- make types tighter (77299d3)
- makes setAuth work with inMemorySession (9794043)
- move isBrowser localStorage check (dffd2b9)
- move options into verifyOtp params (262f7e9)
- move resetPasswordForEmail and refreshAccessToken to GoTrueClient (8f1d19e)
- onAuthStateChange returns data object (0210ed2)
- only remove session when there is an invalid one (ef412f1)
- only saveSession when persistSession is true (815a9bf)
- properly handle non AuthError's (ff228a7)
- refactor update method (f794b1b)
- refactor user methods (49aef46)
- refreshSession should take in an optional refreshToken (4d20e57)
- remove _recoverSession (6ee6f10)
- remove duplicated methods in GoTrueApi (f6d9c41)
- remove multitab stuff (0a9814b)
- remove unnecessary notify events (31c9041)
- rename localstorage to storage (41e66e6)
- resolve & reset deferred upon refresh error (90ed495)
- return provider refresh token (7640bd7)
- send headers on all requests (5dfdd94)
- signInWithPassword should send sign-in event (92e4f0e)
- throw AuthRetryableFetchError on network errors only (7e7f32f)
- typedocs docs (d4a49ee)
- typo in auth cookie error (489af4d)
- update types for generateLink (99f1bec)
- use current session in _startAutoRefreshToken callback (83f48ab)
- validate error callback urls (c065fd4)
- verifyOTP should send session (81b52db)
- wait for _getSessionFromUrl (4018cae)
Features
- add getUser method (d32ae77)
- added async getSession method (a722840)
- Merge pull request #304 from supabase/km/refactor-sign-in (f14cc9f)
- refactor returns types to always return data (0b3086a)
- Release V2 RC (9d6d199)
- remove all cookie related methods (6211cf1)
- remove deprecated functions (1e3ce97)
- rename GoTrueApi to GoTrueAdminApi (4f6b92a)
- update setSession (e6ee0c6)
BREAKING CHANGES
- Release V2