Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
23 KiB
@thirdweb-dev/auth
3.1.0
Minor Changes
Patch Changes
-
#1111
21627c03Thanks @adam-maj! - Update expiration dates for auth -
Updated dependencies [
9b20fc9a]:- @thirdweb-dev/[email protected]
3.0.23
Patch Changes
-
#1101
e1846c44Thanks @adam-maj! - Bump invalid before with 5 minute window -
#1098
67450789Thanks @MananTank! - add sideEffects: false in package.json -
Updated dependencies []:
- @thirdweb-dev/[email protected]
3.0.22
Patch Changes
- Updated dependencies [
bba9767a,bd86661f,68fa1896,292a321a,f3b2ae3f,4f99ccb4,c85810ee,35984362]:- @thirdweb-dev/[email protected]
3.0.21
Patch Changes
- Updated dependencies [
30e5593d]:- @thirdweb-dev/[email protected]
3.0.20
Patch Changes
- Updated dependencies [
b6f48e10]:- @thirdweb-dev/[email protected]
3.0.19
Patch Changes
-
#1013
b92aabe4Thanks @adam-maj! - Expose request on onUser hook -
Updated dependencies [
738c0ec6,d495a4b8,4f843833]:- @thirdweb-dev/[email protected]
3.0.18
Patch Changes
- Updated dependencies [
6a4aab0b]:- @thirdweb-dev/[email protected]
3.0.17
Patch Changes
- Updated dependencies [
93bdec06,ea0f9479,05ebbc15,4ca557ae,7d7685e3,93bd5733]:- @thirdweb-dev/[email protected]
3.0.16
Patch Changes
-
#958
72b8b982Thanks @adam-maj! - Add extra options to cookie on logout -
Updated dependencies [
7012513b,5d67b280,f12a80a4,5a67d5d8,d2c7f6d7,c7c2530c,e22e4a47,1e4ac672,fc96e147,4a69f8c8,26cd91ff,0186721b,1e9fad77,7af99d9a,8cfb4f38]:- @thirdweb-dev/[email protected]
3.0.15
Patch Changes
-
#874
49922de9Thanks @iketw! - [RN] Adds Auth to React Native- Adds an optional
secureStorageto authConfig - Adds
expo-secure-storeto store the JWT token securely in React Native, passing a default value - Stores the token in secure storage to be accessed by subsequent calls
- Returns the token in
useLoginto be used by the user
How I tested:
- Tested in Android/iOS/Web
Usage:
<ThirdwebProvider activeChain="ethereum" supportedWallets={[metamaskWallet(), rainbowWallet()]} authConfig={{ domain: https://your-domain.com, authUrl: '/api/auth', }}> <AppInner /> </ThirdwebProvider>const { login } = useLogin(); const { logout } = useLogout(); const { user, isLoggedIn } = useUser(); ... const token = await login(); - Adds an optional
-
Updated dependencies [
4acb2b55,82bea3fa,664d1cd0,c2fec930]:- @thirdweb-dev/[email protected]
3.0.14
Patch Changes
- Updated dependencies [
b616dca7,2545a440,229a4741]:- @thirdweb-dev/[email protected]
3.0.13
Patch Changes
- Updated dependencies [
235eb046]:- @thirdweb-dev/[email protected]
3.0.12
Patch Changes
- Updated dependencies [
c5c2d947,2dd192a5]:- @thirdweb-dev/[email protected]
3.0.11
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
3.0.10
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
3.0.9
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
3.0.8
Patch Changes
-
#791
c2324bfdThanks @jnsdls! - now relies on@thirdweb-dev/walletsfor wallet integrations instead of rolling its own -
#709
d6913d70Thanks @adam-maj! - Make @thirdweb-dev/wallets actual dev dependency of auth -
Updated dependencies [
d01b135d,93eca1de,a6fce0f6,4bdeefe6,33d1cc7f,83e99dbf,95bcfa6d,4d07b4b4,4d5fdda9,6b31a9bc,4b77bc9b,d01b135d,e47ceafe,6c0c6538,ddc1c33a,2221f97d]:- @thirdweb-dev/[email protected]
3.0.7
Patch Changes
3.0.6
Patch Changes
3.0.5
Patch Changes
3.0.4
Patch Changes
-
#581
4d9e5c6Thanks @adam-maj! - Remove wallet from next-auth config -
#576
f6ea971Thanks @adam-maj! - Add support for next-auth to auth and react
3.0.3
Patch Changes
3.0.2
3.0.1
Patch Changes
3.0.0
Major Changes
-
#460
a6c074cThanks @adam-maj! - Complete Auth redesign and update to add a number of major and quality of life improvements, including the following:- Ability to use Auth APIs with both cookies and JWTs, allowing non browser clients to interact with Auth (mobile, gaming, scripts, etc.)
- Ability to store session data and other data on the Auth user
- Callbacks to run side-effects on login, logout, and requesting user data
- Ability to configure cookies for custom domains and backend setups
- Support for validation of the entire EIP4361/CAIP122 specification
- No more need for redirects or payload encoding on Auth requests
- and more...
See the new documentation to view the new changes and usage: Auth Documentation.
How to upgrade
The
ThirdwebAuthconstructor now takes thedomainin the constructor, and takes a more genericwalletinterface as input. Thewalletcan be imported from the@thirdweb-dev/walletspackage, or for more simpler use cases, from the@thirdweb-dev/auth/evmand@thirdweb-dev/auth/solanaentrypoints.import { PrivateKeyWallet } from "@thirdweb-dev/auth/evm"; // Pass in domain and wallet to the constructor const wallet = new PrivateKeyWallet("0x..."); const auth = new ThirdwebAuth(wallet, "example.com"); // Auth functions no longer require domain to be passed in const payload = await auth.login();
2.0.41
2.0.40
2.0.39
2.0.38
2.0.37
2.0.36
2.0.35
2.0.34
Patch Changes
2.0.33
2.0.32
2.0.31
Patch Changes
2.0.30
2.0.29
2.0.28
2.0.27
2.0.26
2.0.25
2.0.24
2.0.23
2.0.22
2.0.21
Patch Changes
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.14
Patch Changes
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
Patch Changes
- Updated dependencies [
ce05bfd]:- @thirdweb-dev/[email protected]
2.0.7
Patch Changes
- Updated dependencies [
5f5ab01]:- @thirdweb-dev/[email protected]
2.0.6
Patch Changes
- Updated dependencies [
a80fc97]:- @thirdweb-dev/[email protected]
2.0.5
Patch Changes
- Updated dependencies [
4169b94,3b877ba,b54f95d,f8ab477,772f843,a9ec190,208b038,5345479]:- @thirdweb-dev/[email protected]
2.0.4
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
2.0.3
Patch Changes
- Updated dependencies [
51dde28,9d74a43,b234c58]:- @thirdweb-dev/[email protected]
2.0.2
Patch Changes
- Updated dependencies [
42c79e9,fe8751e]:- @thirdweb-dev/[email protected]
2.0.1
Patch Changes
- Updated dependencies [
98dd64a]:- @thirdweb-dev/[email protected]
2.0.0
Patch Changes
- Updated dependencies [
a70b590,a37bc00,b442c97,0fa6f3f,2adb8ff,5a5bc36,820a519,0fa6f3f,82627ea]:- @thirdweb-dev/[email protected]
1.0.8
Patch Changes
- Updated dependencies [
baa87a1,4079326,05353fd]:- @thirdweb-dev/[email protected]
1.0.7
Patch Changes
-
#61
3287c2bThanks @jnsdls! - fix versions in dependencies before releasing stable -
Updated dependencies [
3287c2b]:- @thirdweb-dev/[email protected]
1.0.6
Patch Changes
- Updated dependencies [
6ba9cad]:- @thirdweb-dev/[email protected]
1.0.5
Patch Changes
-
Updated dependencies [
5644ccd]:- @thirdweb-dev/[email protected]
1.0.4
Patch Changes
-
Updated dependencies [
091f175]:- @thirdweb-dev/[email protected]
1.0.3
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
1.0.2
Patch Changes
-
#38
74640b2Thanks @adam-maj! - Add callbacks to express and next auth -
#43
821383eThanks @jnsdls! - export all entrypoints from main package -
#46
349b5c1Thanks @jnsdls! - imrprove babel & tsconfig settings -
#47
82156ccThanks @jnsdls! - re-enable cache for auth build output -
#37
5d8654aThanks @adam-maj! - Update user endpoints for express and next -
Updated dependencies [
ed639d6,349b5c1,46ad691,5731ac2,5731ac2]:- @thirdweb-dev/[email protected]
1.0.1
Patch Changes
02c2b52: force version- Updated dependencies [
02c2b52]- @thirdweb-dev/[email protected]
1.0.0
Minor Changes
3abe26c: initialze monorepo packages
Patch Changes
- Updated dependencies [
3abe26c]- @thirdweb-dev/[email protected]