You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates the SSO docs to:
- move the web example code snippets to the `examples` folder
- rename the account modules page to "accounts"
- remove the "supported environments" page to the FAQ
- add info and examples for new methods
- replaces deprecated web3modal example with reown appkit example
TODO:
- [x] fix or remove the `onSessionStateChange` example in the getting
started section
Currently, only login with passkeys is supported in ZKsync SSO.
9
-
We are working on adding support for logging in with an Externally Owned Account (EOA) in the future.
8
+
ZKsync SSO supports both logging in with passkeys and with an Externally Owned Account (EOA) where the private key is available.
9
+
It does not support logging in with a browser-based wallet extension.
10
10
11
11
## How secure is ZKsync SSO?
12
12
@@ -39,6 +39,36 @@ Refer to the [Getting Started Guide](/zksync-era/unique-features/zksync-sso/gett
39
39
40
40
The deployed contract addresses for ZKsync Sepolia testnet are available in the [ZKsync SSO repository](https://github.com/matter-labs/zksync-sso/blob/main/packages/auth-server/stores/era-sepolia.json).
41
41
42
+
## What environments are supported?
43
+
44
+
ZKsync SSO currently supports web applications through its JavaScript SDK,
45
+
and mobile applications via the React Native and Swift SDKs.
46
+
47
+
### Web
48
+
49
+
**Supported Browsers:**
50
+
51
+
-**Google Chrome**
52
+
-**Safari**
53
+
-**Mozilla Firefox**
54
+
-**Microsoft Edge**
55
+
-**Opera**
56
+
57
+
See the full list of specific versions [here](https://caniuse.com/webauthn).
58
+
This broad browser support ensures a smooth user experience across various platforms.
59
+
60
+
### Mobile
61
+
62
+
The React Native SDK is now available for building React Native applications.
63
+
Native Swift and Kotlin SDKs are **coming soon** and will enable developers to incorporate ZKsync SSO features into native mobile applications.
64
+
65
+
### Coming Soon
66
+
67
+
Windows 10 users with [Windows Hello](https://www.microsoft.com/en-us/windows/tips/windows-hello) will
68
+
not be able to use PIN or facial recognition until RS256 support is added in a future module.
69
+
Until then, using a mobile device or a password manager will be required to create compatable passkeys on Windows 10.
70
+
The user may still see these options, but will be unable to create an account with the passkey on this platform.
The [`PublicKeyCredentialCreationOptionsJSON`](https://github.com/MasterKale/SimpleWebAuthn/blob/467f8f1e18834964acf1302c2142a50372a72e16/packages/types/src/index.ts#L52)
69
+
type comes from the [`@simplewebauthn/server`](https://simplewebauthn.dev/docs/packages/server) package.
The `GeneratePasskeyRegistrationOptionsArgs` type draws from
76
+
the [`GenerateRegistrationOptionsOpts`](https://github.com/MasterKale/SimpleWebAuthn/blob/467f8f1e18834964acf1302c2142a50372a72e16/packages/server/src/registration/generateRegistrationOptions.ts#L85)
77
+
type from the [`@simplewebauthn/server`](https://simplewebauthn.dev/docs/packages/server) package.
78
+
79
+
The `userName` field defines the unique user ID used to generate to the passkey.
80
+
81
+
The `userDisplayName` field defines the passkey display name.
82
+
83
+
The `origin` field optionally defines the domain for the passkey's related origin.
84
+
This field defaults to the `window.location.origin` value.
85
+
86
+
You can refer to the [`@simplewebauthn/server`](https://simplewebauthn.dev/docs/packages/server) docs for specifications on the remaining input fields.
The current implemented modules can be found in the [`validators` folder](https://github.com/matter-labs/zksync-sso-clave-contracts/tree/main/src/validators).
22
+
23
+
Looking for inspiration?
24
+
Take a look at the modules already created for [ERC-7579](https://erc7579.com/modules)
25
+
26
+
## Deploying an Account From a Registered Passkey
27
+
28
+
You can deploy a modular account from a [registered passkey](/zksync-era/unique-features/zksync-sso/passkeys#registering-a-new-passkey)
0 commit comments