auth-js

An isomorphic Javascript library for Supabase Auth.

MIT License

Downloads
1.5M
Stars
356
Committers
75

Bot releases are visible (Hide)

auth-js - v2.2.4

Published by github-actions[bot] almost 2 years ago

2.2.4 (2022-11-09)

Bug Fixes

auth-js - v2.2.3

Published by github-actions[bot] almost 2 years ago

2.2.3 (2022-11-04)

Bug Fixes

auth-js - v2.2.2

Published by github-actions[bot] almost 2 years ago

2.2.2 (2022-11-01)

Bug Fixes

auth-js - v2.2.1

Published by github-actions[bot] almost 2 years ago

2.2.1 (2022-10-21)

Bug Fixes

auth-js - v2.2.0

Published by github-actions[bot] almost 2 years ago

2.2.0 (2022-10-21)

Bug Fixes

  • add forgotten data option for sign ins (37d19aa)
  • eof newline (2eea38f)
  • mfa challenge and verify (bf53819)
  • refreshSession() test (62996c2)
  • remove access token and jwt code (b5d807d)
  • spelling (56b765e)
  • tidy up tab issue in unrelated code (9031ee9)

Features

auth-js - v2.1.0

Published by github-actions[bot] about 2 years ago

2.1.0 (2022-10-20)

Bug Fixes

  • add initial enroll and challenge implementations (e978aac)
  • change enroll params to snake case (78044a4)
  • change types to return appropriate signatures (3c5f2e0)
  • listFactors should use getUser (e214bdb)
  • merge rc into mfa (4f2ada3)
  • mfa verify should update current session (9ed8fcc)
  • update corresponding type for TOTP (65d9505)
  • update default value from totp -> TOTP (c36fa1c)
  • update getAAL and getAMR methods (792ea21)
  • update getAuthenticatorAssuranceLevel (4559cf3)
  • use snake_case in req body keys (fcc4306)

Features

  • add getAMR and getAAL (fa38a48)
  • add more method implementations (d8c5234)
  • initial MFA stubs (358e602)
  • start adding admin mfa bindings (496f1ec)
auth-js - v2.0.1

Published by github-actions[bot] about 2 years ago

2.0.1 (2022-10-11)

Bug Fixes

auth-js - v2.0.0

Published by github-actions[bot] about 2 years ago

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
auth-js - v2.0.0-rc.11

Published by github-actions[bot] about 2 years ago

2.0.0-rc.11 (2022-10-11)

Bug Fixes

  • send application/json in Content-Type header (#429) (0fc980c)

Features

  • add setSession support for a SSR context (be413ca)
  • add provider refresh token (7c310ea)
auth-js - v1.24.0

Published by github-actions[bot] about 2 years ago

1.24.0 (2022-10-10)

Features

  • add setSession support for a SSR context (be413ca)
auth-js - v2.0.0-rc.10

Published by github-actions[bot] about 2 years ago

2.0.0-rc.10 (2022-10-05)

Bug Fixes

  • change setSession to take in an access token (ed87b76)
  • change setSession to take in an object (f7e3bc1)

Features

auth-js - v2.0.0-rc.9

Published by github-actions[bot] about 2 years ago

2.0.0-rc.9 (2022-10-04)

Bug Fixes

  • return provider refresh token (7640bd7)
auth-js - v2.0.0-rc.8

Published by github-actions[bot] about 2 years ago

2.0.0-rc.8 (2022-10-04)

Bug Fixes

  • getUser should default to authorization header (9e8d89f)
auth-js - v2.0.0-rc.7

Published by github-actions[bot] about 2 years ago

2.0.0-rc.7 (2022-10-04)

Bug Fixes

  • use current session in _startAutoRefreshToken callback (83f48ab)
auth-js - v1.23.1

Published by github-actions[bot] about 2 years ago

1.23.1 (2022-09-30)

Bug Fixes

  • send application/json in Content-Type header (#429) (0fc980c)
auth-js - v2.0.0-rc.6

Published by github-actions[bot] about 2 years ago

2.0.0-rc.6 (2022-09-30)

Bug Fixes

  • throw AuthRetryableFetchError on network errors only (7e7f32f)
auth-js - v1.23.0

Published by github-actions[bot] about 2 years ago

1.23.0 (2022-09-27)

Features

  • add provider refresh token (7c310ea)
auth-js - v2.0.0-rc.5

Published by github-actions[bot] about 2 years ago

2.0.0-rc.5 (2022-09-15)

Bug Fixes

auth-js - v2.0.0-rc.4

Published by github-actions[bot] about 2 years ago

2.0.0-rc.4 (2022-09-05)

Bug Fixes

  • fix test for json error response (06746fe)
  • handle custom fetch response in error handler (7371ad6)
auth-js - v2.0.0-rc.3

Published by github-actions[bot] about 2 years ago

2.0.0-rc.3 (2022-08-22)

Bug Fixes

  • make types tigher for generateLink (07adc58)
  • move isBrowser localStorage check (dffd2b9)
  • move options into verifyOtp params (262f7e9)
  • onAuthStateChange returns data object (0210ed2)
  • update types for generateLink (99f1bec)