-
-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login workflow resolution for develop-postgres API #3400
Changes from all commits
d8ec939
87b38a5
3d8d185
44abf08
a175d6a
544c07f
dbcac24
15c9105
fb13487
ec971c5
a8ed17f
2f179bf
2e78756
ac255f2
a5579ba
a8c99e8
16c22cc
2de8bc2
fbd1ff6
d1feb13
b3cb1c6
5bcadb1
77f2341
00c8af9
8769b07
875221a
ecb21b7
9e3469e
7548734
3dd00c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: CURRENT\_USER | ||
|
||
> `const` **CURRENT\_USER**: `DocumentNode` | ||
|
||
Defined in: [src/GraphQl/Queries/Queries.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L6) | ||
Comment on lines
+1
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Documentation needs line number correction and field details The documentation should be updated with:
# Variable: CURRENT_USER
> `const` **CURRENT_USER**: `DocumentNode`
-Defined in: [src/GraphQl/Queries/Queries.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L6)
+Defined in: [src/GraphQl/Queries/Queries.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L1)
+
+## Description
+
+Query to fetch the currently authenticated user's information.
+
+## Return Fields
+
+- `id`: String
+- `name`: String
+- `role`: UserRole
+- `emailAddress`: String 🔗 Analysis chainVerify the line number and enhance documentation. The documentation for this new query should be verified and enhanced:
Consider adding the following documentation sections: # Variable: CURRENT_USER
> `const` **CURRENT_USER**: `DocumentNode`
Defined in: [src/GraphQl/Queries/Queries.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L6)
+
+## Description
+
+Query to retrieve the current authenticated user's information.
+
+## Return Fields
+
+- `id`: String
+- `name`: String
+- `role`: UserRole
+- `emailAddress`: String 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the line number of CURRENT_USER definition and its structure
echo "Verifying CURRENT_USER definition location:"
ast-grep --pattern 'const CURRENT_USER = gql`' src/GraphQl/Queries/Queries.ts
echo -e "\nAnalyzing CURRENT_USER query structure:"
rg -A 10 'const CURRENT_USER = gql`' src/GraphQl/Queries/Queries.ts
Length of output: 466 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update authentication documentation.
The documentation mentions
CHECK_AUTH
GraphQL query, but according to the PR objectives, this has been replaced withCURRENT_USER
. Please update the documentation to reflect this change.