Files
github-actions[bot]andgithub-actions[bot] 4516487a9a Version Packages (#600)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-17 17:38:12 -08:00

12 KiB

@thirdweb-dev/auth

3.0.5

Patch Changes

3.0.4

Patch Changes

3.0.3

Patch Changes

3.0.2

3.0.1

Patch Changes

3.0.0

Major Changes

  • #460 a6c074c Thanks @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 ThirdwebAuth constructor now takes the domain in the constructor, and takes a more generic wallet interface as input. The wallet can be imported from the @thirdweb-dev/wallets package, or for more simpler use cases, from the @thirdweb-dev/auth/evm and @thirdweb-dev/auth/solana entrypoints.

    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

2.0.7

Patch Changes

2.0.6

Patch Changes

2.0.5

Patch Changes

2.0.4

Patch Changes

2.0.3

Patch Changes

2.0.2

Patch Changes

2.0.1

Patch Changes

2.0.0

Patch Changes

1.0.8

Patch Changes

1.0.7

Patch Changes

1.0.6

Patch Changes

1.0.5

Patch Changes

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Minor Changes

  • 3abe26c: initialze monorepo packages

Patch Changes

0.2.1

Patch Changes