udibo / oauth2_server

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
MIT License
21 stars 4 forks source link

Use Web Crypto API instead of std/hash #27

Closed KyleJune closed 3 years ago

KyleJune commented 3 years ago

Closes https://github.com/udibo/oauth2_server/issues/26

As part of this, I had to change challengeMethods to be async since the Web Crypto API is async. I also moved hashPassword from the example to the AbstractUserService.