auth-js

An isomorphic Javascript library for Supabase Auth.

MIT License

Downloads
24
Stars
289

Bot releases are visible (Hide)

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

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

2.0.0-rc.2 (2022-08-18)

Bug Fixes

  • _getSessionFromUrl() test (4838a4b)
  • await _saveSession and _removeSession (ebf4ce4)
  • await getSessionFromUrl in _recoverAndRefresh (4506866)
  • distinguish between malformed urls and errors (5db69b0)
  • don't throw errors in constructor (250923e)
  • fix broken test (fc7ac57)
  • only remove session when there is an invalid one (ef412f1)
  • validate error callback urls (c065fd4)
  • wait for _getSessionFromUrl (4018cae)
auth-js - v2.0.0-rc.1

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

2.0.0-rc.1 (2022-08-16)

Bug Fixes

  • add AuthResponse type (d7881b3)
  • add custom error classes (0e0cac4)
  • allow custom storage key in localstorage (9335ccc)
  • 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)
  • export errors (4c07a72)
  • 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)
  • ignore no-extra-semi (8ed1dd7)
  • make types tighter (77299d3)
  • makes setAuth work with inMemorySession (9794043)
  • move resetPasswordForEmail and refreshAccessToken to GoTrueClient (8f1d19e)
  • 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)
  • send headers on all requests (5dfdd94)
  • signInWithPassword should send sign-in event (92e4f0e)
  • typedocs docs (d4a49ee)
  • typo in auth cookie error (489af4d)
  • verifyOTP should send session (81b52db)

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)

BREAKING CHANGES

  • Release V2
auth-js - v1.23.0-next.24

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

1.23.0-next.24 (2022-08-16)

Bug Fixes

  • send headers on all requests (5dfdd94)
auth-js - v1.23.0-next.23

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

1.23.0-next.23 (2022-08-16)

Bug Fixes

auth-js - v1.23.0-next.22

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

1.23.0-next.22 (2022-08-16)

Bug Fixes

auth-js - v1.23.0-next.21

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

1.23.0-next.21 (2022-08-16)

Bug Fixes

  • getUser should accept jwt (7a7075f)
  • signInWithPassword should send sign-in event (92e4f0e)
  • verifyOTP should send session (81b52db)
  • removed GoTrueApi.sendMobileOTP(), GoTrueApi.sendMagicLinkEmail in favor of signInWithOtp (f6d9c4)
  • removed GoTrueApi.signInWithEmail, GoTrueApi.signInWithPhone in favor of signInWithPassword (f6d9c4)
  • removed GoTrueApi.signUpWithEmail, GoTrueApi.signUpWithPhone in favor of signUp (f6d9c4)
  • removed GoTrueApi.verifyOTP in favor of verifyOtp (f6d9c4)
auth-js - v1.23.0-next.20

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

1.23.0-next.20 (2022-08-15)

Bug Fixes

  • move resetPasswordForEmail and refreshAccessToken to GoTrueClient (8f1d19e)
  • refactor update method (f794b1b)
  • remove duplicated methods in GoTrueApi (f6d9c41)

Features

  • rename GoTrueApi to GoTrueAdminApi (4f6b92a)
auth-js - v1.23.0-next.19

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

1.23.0-next.19 (2022-08-15)

Bug Fixes

auth-js - v1.23.0-next.18

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

1.23.0-next.18 (2022-08-15)

Bug Fixes

  • add config for sign in endpoints (84c28df)
  • add email change types to generateLink (fe0663e)
auth-js - v1.23.0-next.17

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

1.23.0-next.17 (2022-08-15)

Bug Fixes

  • fixes exponential backoff upon token refresh (01e39c6)
auth-js - v1.23.0-next.16

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

1.23.0-next.16 (2022-08-13)

Features

  • remove all cookie related methods (6211cf1)
auth-js - v1.23.0-next.15

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

1.23.0-next.15 (2022-08-12)

Bug Fixes

auth-js - v1.23.0-next.14

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

1.23.0-next.14 (2022-08-11)

Bug Fixes

  • rename localstorage to storage (41e66e6)
auth-js - v1.23.0-next.13

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

1.23.0-next.13 (2022-08-11)

Features

  • refactor returns types to always return data (0b3086a)
auth-js - v1.23.0-next.12

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

1.23.0-next.12 (2022-08-10)

Bug Fixes

  • correct typo (828b0b3)
  • fix ts error introduced with prettier changes (709e3f4)
  • properly handle non AuthError's (ff228a7)
  • resolve & reset deferred upon refresh error (90ed495)
auth-js - v1.23.0-next.11

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

1.23.0-next.11 (2022-08-09)

Bug Fixes

  • cleanup localStorage session format (a93adc6)
auth-js - v1.23.0-next.10

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

1.23.0-next.10 (2022-08-09)

Bug Fixes

auth-js - v1.22.22

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

1.22.22 (2022-08-08)

Bug Fixes

  • add email change types to generateLink (fe0663e)
auth-js - v1.23.0-next.9

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

1.23.0-next.9 (2022-08-05)

Bug Fixes

  • typo in auth cookie error (489af4d)