@toa.io/extensions.exposition 1.0.0-alpha.201 → 1.0.0-alpha.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/identity.bans/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/operations/add.js.map +1 -1
- package/components/identity.basic/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/source/add.ts +2 -2
- package/components/identity.federation/operations/incept.js.map +1 -1
- package/components/identity.federation/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.federation/source/incept.ts +1 -2
- package/components/identity.keys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/operations/issue.js +1 -1
- package/components/identity.otp/operations/issue.js.map +1 -1
- package/components/identity.otp/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/source/issue.ts +2 -3
- package/components/identity.passkeys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.roles/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.tokens/operations/tsconfig.tsbuildinfo +1 -1
- package/features/steps/Workspace.ts +1 -2
- package/package.json +10 -9
- package/source/HTTP/Context.ts +1 -1
- package/source/HTTP/Server.ts +3 -3
- package/source/HTTP/Timing.ts +1 -1
- package/source/HTTP/messages.test.ts +1 -2
- package/source/HTTP/messages.ts +4 -8
- package/source/RTD/Node.ts +1 -2
- package/source/RTD/Tree.ts +2 -4
- package/source/directives/auth/Input.ts +1 -2
- package/source/directives/auth/Role.test.ts +1 -2
- package/source/directives/auth/Role.ts +1 -2
- package/source/directives/auth/Rule.ts +1 -2
- package/source/directives/cache/Cache.ts +3 -4
- package/source/directives/dev/Faulty.ts +3 -3
- package/source/directives/octets/Delete.ts +1 -2
- package/source/directives/octets/Octets.ts +1 -2
- package/source/directives/octets/Put.ts +2 -4
- package/source/exceptions.ts +1 -1
- package/transpiled/HTTP/Server.js.map +1 -1
- package/transpiled/HTTP/Timing.js.map +1 -1
- package/transpiled/HTTP/messages.js.map +1 -1
- package/transpiled/RTD/Node.js.map +1 -1
- package/transpiled/RTD/Tree.js.map +1 -1
- package/transpiled/Tenant.js +1 -1
- package/transpiled/directives/auth/Input.js.map +1 -1
- package/transpiled/directives/auth/Role.js.map +1 -1
- package/transpiled/directives/auth/Rule.js.map +1 -1
- package/transpiled/directives/cache/Cache.js.map +1 -1
- package/transpiled/directives/dev/Faulty.d.ts +2 -2
- package/transpiled/directives/dev/Faulty.js.map +1 -1
- package/transpiled/directives/octets/Delete.js.map +1 -1
- package/transpiled/directives/octets/Octets.js.map +1 -1
- package/transpiled/directives/octets/Put.js.map +1 -1
- package/transpiled/exceptions.js +1 -1
- package/transpiled/tsconfig.tsbuildinfo +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { decode, exchange, type Ctx } from './lib'
|
|
2
2
|
import type { Request } from '@toa.io/types'
|
|
3
|
-
import type { Context,
|
|
3
|
+
import type { Context, TransitInput, Scheme } from './types'
|
|
4
4
|
|
|
5
5
|
export async function effect (input: Input, context: Context): Promise<Output | Error> {
|
|
6
6
|
const ctx: Ctx = {
|
|
@@ -12,7 +12,6 @@ export async function effect (input: Input, context: Context): Promise<Output |
|
|
|
12
12
|
? await decode(input.credentials, ctx)
|
|
13
13
|
: await exchange(input.credentials, ctx)
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
if (claims instanceof Error)
|
|
17
16
|
return claims
|
|
18
17
|
|