Skip to content
Snippets Groups Projects
Commit fa772f43 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Removing @benadida's change to make the provisioning mock's setStatus...

Removing @benadida's change to make the provisioning mock's setStatus asynchronous.  Instead of generating the key whenever the status is set, generate the key whenever the user is being provisioned.  Since the mock uses jwcrypto which must be seeded, seed jwcrypto with some bits.  This more closely matches what a real RP would do.

In the unit tests, any asynchronous calls to provisioningMock.setStatus have been make synchronous.

In user.js, syncEmailKeypair, since jwcrypto depends on there being a seed to generate a keypair, call network.withContext which ensures there is a seed.
parent 02f1a907
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment