deno.land / x / oauth4webapi@v1.2.2 / test / issue-15.test.ts

issue-15.test.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// see https://github.com/panva/oauth4webapi/issues/15
import test from 'ava'import { issuer, client, getResponse } from './_setup.js'import * as lib from '../src/index.js'
const response = getResponse( JSON.stringify({ access_token: 'foo', token_type: 'bearer', scope: '' }),)
test('handles empty scope from the Token Endpoint', async (t) => { await t.notThrowsAsync(() => Promise.all([ lib.processAuthorizationCodeOAuth2Response(issuer, client, response), lib.processDeviceCodeResponse(issuer, client, response), lib.processClientCredentialsResponse(issuer, client, response), lib.processRefreshTokenResponse(issuer, client, response), ]), )})
oauth4webapi

Version Info

Tagged at
2 years ago