Retrict some query and mutation to only session
Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
extend type Mutation {
|
||||
authorizeDevice(
|
||||
input: AuthorizeDeviceInput!
|
||||
): AuthorizeDevicePayload @session(required: PRESENT)
|
||||
): AuthorizeDevicePayload @authentication(required: PRESENT) @sessionOnly
|
||||
|
||||
approveConsent(
|
||||
input: ApproveConsentInput!
|
||||
): ApproveConsentPayload @session(required: PRESENT)
|
||||
): ApproveConsentPayload @authentication(required: PRESENT) @sessionOnly
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user