Updated all tests to use https://deno.land/std@0.161.0/testing/
Replace mock library and use https://deno.land/std@0.161.0/testing/mock.ts instead
Introduce PKCE by default when using the Authorization Code Grant
The module automatically generates code_challenge and code_verifier values if not using the opt-out option
Interfaces were renamed to prevent name clashes between grants
The stateValidator callback that's used by both the Implicit and Authorization Code Grants can now return a Promise<boolean>, allowing e.g. database calls to be made inside the callback.
AuthorizationCodeGrant.getAuthorizationUri now always returns a { uri: URL } value, plus an additional codeVerifier: string when using PKCE
AuthorizationCodeGrant.getAuthorizationUri is now async (to account for both the stateValidator and the generation of the PKCE codeChallenge being async)
upgrade GitHub workflow dependencies
use actions/checkout@v3 (instead of v2)
use denoland/setup-deno@v1 (instead of denolib/setup-deno@v1)
remove --unstable flags from deno commands that no longer require them
https://deno.land/std@0.161.0/testing/
https://deno.land/std@0.161.0/testing/mock.ts
insteadcode_challenge
andcode_verifier
values if not using the opt-out optionstateValidator
callback that's used by both the Implicit and Authorization Code Grants can now return aPromise<boolean>
, allowing e.g. database calls to be made inside the callback.AuthorizationCodeGrant.getAuthorizationUri
now always returns a{ uri: URL }
value, plus an additionalcodeVerifier: string
when using PKCEAuthorizationCodeGrant.getAuthorizationUri
is now async (to account for both thestateValidator
and the generation of the PKCEcodeChallenge
being async)actions/checkout@v3
(instead of v2)denoland/setup-deno@v1
(instead ofdenolib/setup-deno@v1
)--unstable
flags from deno commands that no longer require them