Skip to content
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

Merged
merged 6 commits into from
Nov 28, 2024
Merged

feat: Add digiLocker module #31

merged 6 commits into from
Nov 28, 2024

Conversation

tusharbhayani
Copy link
Contributor

Summary

  • DigiLocker initial setup

Signed-off-by: tusharbhayani <tushar.bhayani@ayanworks.com>
Signed-off-by: tusharbhayani <tushar.bhayani@ayanworks.com>
}: 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`
Copy link
Contributor

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'
Copy link
Contributor

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}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

tusharbhayani and others added 2 commits November 11, 2024 17:20
"build"
],
"dependencies": {
"react-native": "0.72.5",
Copy link
Contributor

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>
Copy link
Contributor

@sairanjit sairanjit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sairanjit sairanjit changed the title feat: DigiLocker initial setup feat: Add digiLocker module Nov 28, 2024
@sairanjit sairanjit merged commit 9000558 into main Nov 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants