chore: make client secret optional across grant types (#4363)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import V3_VERSION from "./v/3"
|
||||
import V4_VERSION from "./v/4"
|
||||
import V5_VERSION from "./v/5"
|
||||
import V6_VERSION from "./v/6"
|
||||
import V7_VERSION from "./v/7"
|
||||
|
||||
export {
|
||||
HoppGQLAuthBasic,
|
||||
@@ -16,16 +17,17 @@ export {
|
||||
|
||||
export { HoppGQLAuthAPIKey } from "./v/4"
|
||||
|
||||
export { GQLHeader, HoppGQLAuth, HoppGQLAuthOAuth2 } from "./v/6"
|
||||
export { GQLHeader } from "./v/6"
|
||||
export { HoppGQLAuth, HoppGQLAuthOAuth2 } from "./v/7"
|
||||
|
||||
export const GQL_REQ_SCHEMA_VERSION = 6
|
||||
export const GQL_REQ_SCHEMA_VERSION = 7
|
||||
|
||||
const versionedObject = z.object({
|
||||
v: z.number(),
|
||||
})
|
||||
|
||||
export const HoppGQLRequest = createVersionedEntity({
|
||||
latestVersion: 6,
|
||||
latestVersion: 7,
|
||||
versionMap: {
|
||||
1: V1_VERSION,
|
||||
2: V2_VERSION,
|
||||
@@ -33,6 +35,7 @@ export const HoppGQLRequest = createVersionedEntity({
|
||||
4: V4_VERSION,
|
||||
5: V5_VERSION,
|
||||
6: V6_VERSION,
|
||||
7: V7_VERSION,
|
||||
},
|
||||
getVersion(x) {
|
||||
const result = versionedObject.safeParse(x)
|
||||
|
||||
Reference in New Issue
Block a user