Skip to content

Commit b507aef

Browse files
Update src/typeDefs/types.ts
line -86 Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e0c4306 commit b507aef

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/typeDefs/types.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,17 @@ export const types = gql`
843843
messageId: ID!
844844
}
845845
846+
"""
847+
Response type for verifying user roles and their authorization status.
848+
"""
846849
type VerifyRoleResponse {
847-
role: String
848-
isAuthorized: Boolean
850+
"""
851+
The role of the user (e.g., 'ADMIN', 'USER', etc.).
852+
"""
853+
role: String!
854+
"""
855+
Whether the user is authorized for the requested action.
856+
"""
857+
isAuthorized: Boolean!
849858
}
850859
`;

0 commit comments

Comments
 (0)