mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-09 15:13:12 -06:00
Remove nonce generation for eip4361 signin (#25)
Co-authored-by: Tak Wai Wong <tak@hntlabs.com>
This commit is contained in:
parent
850788ba1a
commit
b4ff83bd96
|
|
@ -61,7 +61,6 @@ func TestLoginPublicKeyNewSession(t *testing.T) {
|
|||
"err.Code actual: %v, expected: %v", err.Code, http.StatusUnauthorized)
|
||||
challenge := err.JSON.(Challenge)
|
||||
assert.NotEmptyf(challenge.Session, "challenge.Session")
|
||||
assert.NotEmptyf(challenge.Completed, "challenge.Completed")
|
||||
assert.Truef(
|
||||
authtypes.LoginTypePublicKeyEthereum == challenge.Flows[0].Stages[0],
|
||||
"challenge.Flows[0].Stages[0] actual: %v, expected: %v", challenge.Flows[0].Stages[0], authtypes.LoginTypePublicKeyEthereum)
|
||||
|
|
@ -74,7 +73,6 @@ func TestLoginPublicKeyNewSession(t *testing.T) {
|
|||
"[object]")
|
||||
ethParams := params.(config.EthereumAuthParams)
|
||||
assert.NotEmptyf(ethParams.ChainIDs, "ChainIDs actual: empty, expected not empty")
|
||||
assert.NotEmptyf(ethParams.Nonce, "Nonce actual: \"\", expected: not empty")
|
||||
assert.NotEmptyf(ethParams.Version, "Version actual: \"\", expected: not empty")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -340,7 +340,6 @@ func TestNewRegistrationSession(t *testing.T) {
|
|||
"[object]")
|
||||
ethParams := params.(config.EthereumAuthParams)
|
||||
assert.NotEmptyf(ethParams.ChainIDs, "ChainIDs actual: empty, expected not empty")
|
||||
assert.NotEmptyf(ethParams.Nonce, "Nonce actual: \"\", expected: not empty")
|
||||
assert.NotEmptyf(ethParams.Version, "Version actual: \"\", expected: not empty")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue