Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
reactjs-skyIdentification
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ProjetDemo
reactjs-skyIdentification
Commits
c33f0cfe
Commit
c33f0cfe
authored
Dec 22, 2023
by
dtati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
second commit
parent
3fc914f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/Components/SkyIdentification.js
src/Components/SkyIdentification.js
+2
-2
src/config/helperConfig.js
src/config/helperConfig.js
+1
-2
No files found.
src/Components/SkyIdentification.js
View file @
c33f0cfe
...
...
@@ -26,7 +26,7 @@ const SkyIdentification = () => {
const
formData
=
new
FormData
();
formData
.
append
(
"
username
"
,
helper
.
skyid_fa_sdk_user
);
formData
.
append
(
"
password
"
,
helper
.
skyid_fa_sdk_password
);
axios
.
post
(
helper
.
API_url
,
formData
)
axios
.
post
(
helper
.
skyid_fa_sdk_params_url
+
"
login
"
,
formData
)
.
then
(
response
=>
{
setResponseLogin
(
response
.
data
);
if
(
response
.
data
.
status_code
===
"
000
"
)
{
...
...
@@ -42,7 +42,7 @@ const SkyIdentification = () => {
const
formData
=
new
FormData
();
formData
.
append
(
"
token
"
,
helper
.
skyid_fa_sdk_token
);
formData
.
append
(
"
application_id
"
,
helper
.
skyid_fa_sdk_appId
);
axios
.
post
(
helper
.
SKYID_FA_SDK_PARAMS_url
,
formData
,
{
axios
.
post
(
helper
.
skyid_fa_sdk_params_url
+
"
get_parameters_web_sdk
"
,
formData
,
{
headers
:
{
Authorization
:
`Bearer
${
bearToken
}
`
,
'
Content-Type
'
:
'
multipart/form-data
'
,
...
...
src/config/helperConfig.js
View file @
c33f0cfe
export
default
{
// information sent after creation of applicationId by mail
API_url
:
"
***
"
,
OCR_url
:
"
***
"
,
OCR_url_status
:
"
***
"
,
LIVENESS_url
:
"
***
"
,
FACE_MATCHING_url
:
"
***
"
,
SKYID_FA_SDK_PARAMS
_url
:
"
***
"
,
skyid_fa_sdk_params
_url
:
"
***
"
,
Recover_Face_Matching_Result_URL
:
"
***
"
,
institution_id
:
"
***
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment