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 #26

Closed KyleJune closed 3 years ago

KyleJune commented 3 years ago

std/hash has been deprecated now that the Web Crypto API is able to handle hashing.

This change will reduce the size of resource_server.ts from 308.8 kB to 116.4 kB and authorization_server.ts from 345.1 kB to 152.7 kB.