Web 계정 로그인/가입
POST
https://{auth-domain}/v1.0/auth/web/account/login
Headers
Context-Type*
string
application/json
Request Body
social_key*
string
소셜 로그인 시 획득한 액세스 토큰
social_type*
int
소셜 타입(소셜 리스트 API로 부터 전달받은 소셜 정보 참고 부탁 드립니다.)
ip
string
접속 ip
zklogin
object
Zklogin 관련 정보
id_token
string
소셜 id 토큰
ephemeral_publickey
string
zklogin 연동용
epoch
int64
zklogin 연동용
randomness
string
zklogin 연동용
private_key
string
zklogin 연동용
{
"return": 0,
"message": "success",
"value": {
"access_token": "eyJhbGciOiJIUzI1NiI.......q2_P8nQAO3U",
"refresh_token": "eyJhbGciOiJIUzI1Ni.....mef6xVdPn4urbMYByVi73VE",
"access_uuid": "00ab5435-d840-4916-8753-5a9fd74e3da5",
"refresh_uuid": "583d919c-1df4-4734-9c5d-88e55a4582f5",
"access_token_expire_dt": 1710865506865,
"refresh_token_expire_dt": 1710865506865,
"inno_uid": "Qf40Wch7uricUnCcZapBqntoEHgykf4cD/FlvEDlRUs=",
"is_joined": false,
"au_id": 5,
"social_type": 1,
"is_migrated": true,
"zklogin": {
"id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6.......JTEhZMLsg",
"ephemeral_publickey": "AOlMG1EuX/rYa7MPDC+YP2/USB5olfMZbd08whb8QEQW",
"salt": "74618950994268702983342581215713993381",
"epoch": 313,
"randomness": "67617438664689110855700478339690217321",
"private_key": "0x3232323232"
}
}
}
{
"social_key" : "ya29.a0ARrdaM-BzAz7s2Z...",
"social_type" : 1,
"ip" : "14.52.155.93",
"zklogin" : {
"id_token" : "eyJhbGciOiJSUzI1NiI..ckiTDV6eJTEhZMLsg",
"ephemeral_publickey" : "AOlMG1...MZbd08whb8QEQW",
"epoch" : 313,
"randomness" : "67617438664689110855700478339690217321",
"private_key" : "0x3232323232"
}
}
curl --location --request POST 'https://localhost:51001/v1.0/auth/web/account/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"social_key" : "ya29.a0Aa4xrXMK9A23BEnY9aWu6kdK...",
"social_type" : 1,
"ip" : "14.52.155.93",
"zklogin" : {
"id_token" : "eyJhbGciOiJSUzI1NiIs...V6eJTEhZMLsg",
"ephemeral_publickey" : "AOlMG1Eu.....Zbd08whb8QEQW",
"epoch" : 313,
"randomness" : "67617438664689110855700478339690217321",
"private_key" : "0x3232323232"
}
}'
au_id
int
계정 UID
social_type
int
소셜 타입(소셜 리스트 API로 부터 전달받은 소셜 정보 참고 부탁 드립니다.)
inno_uid
string
inno 플랫폼 유저 id
is_joined
bool
신규 회원 여부
exists_main_wallet
bool
main(ONIT) 지갑 존재여부
access_token
string
액세스 토큰 토근 만료시간 : 6시간
refresh_token
string
리프레시 토큰 토근 만료시간 : 6시간
access_uuid
string
액세스 토큰 uuid
refresh_uuid
string
리프레시 토큰 uuid
access_token_expire_dt
int64
액세스 토큰 만료시간 UTC (ms)
refresh_token_expire_dt
int64
리프레시 토큰 만료시간 UTC (ms)
is_migrated*
bool
마이그레이션여부
zklogin
object
id_token*
string
소셜 id 토큰
salt*
string
Zklogin에 사용될 salt 정보
extended_ephemeral_publickey
string
Zklogin 에 사용될 정보
ephemeral_publickey
string
Zklogin 에 사용될 정보
epoch
int64
Zklogin 에 사용될 정보
randomness
string
Zklogin 에 사용될 정보
private_key
string
Zklogin 에 사용될 정보
public_key
string
Zklogin 에 사용될 정보
0
success
성공
13000
DB Error
내부 DB 에
13002
Redis Error
내부 redis 에러
22005
Error API Get Token Address New
token-manager 지갑 생성 오류
22006
Error Procedure Add Accounts Coins
내부 DB 프로시저 오류
22008
Error Verify Social Key
유효하지 못한 Social key
23001
Make Token Error
액세스 토큰 생성 에러
Last updated