-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add digiLocker module #31
Conversation
Signed-off-by: tusharbhayani <tushar.bhayani@ayanworks.com>
Signed-off-by: tusharbhayani <tushar.bhayani@ayanworks.com>
c222724
to
c32fc3d
Compare
}: AdeyaDigiLockerModuleOptions) => { | ||
try { | ||
const codeChallenge = generateCodeChallenge(codeVerifier) | ||
const authUrl = `https://api.digitallocker.gov.in/public/oauth2/1/authorize?response_type=code&client_id=${client_id}&redirect_uri=${redirect_url}&state=adeya2024&code_challenge=${codeChallenge}&code_challenge_method=S256` |
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.
Can we those API URL and config in const file?
} | ||
|
||
export const fetchIssuedDocuments = async (accessToken: string): Promise<{ message: string }> => { | ||
const issuedDocumentsUrl = 'https://api.digitallocker.gov.in/public/oauth2/2/files/issued' |
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.
Same
} | ||
|
||
export const fetchDocumentData = async (uri: string, accessToken: string): Promise<{ message: string }> => { | ||
const documentUrl = `https://api.digitallocker.gov.in/public/oauth2/1/xml/${uri}` |
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.
Same
Signed-off-by: tusharbhayani <tushar.bhayani@ayanworks.com>
packages/digilocker/package.json
Outdated
"build" | ||
], | ||
"dependencies": { | ||
"react-native": "0.72.5", |
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.
Keep react-native
only in the peer dependencies
Signed-off-by: tusharbhayani <tushar.bhayani@ayanworks.com>
Signed-off-by: tusharbhayani <tushar.bhayani@ayanworks.com>
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.
LGTM
Summary