sayren Docs
내 정보

소셜 계정 연결 시작

로그인한 구매자에 공급자 계정을 연결하는 주소를 돌려준다. 본문은 소셜 로그인 시작과 같고, 돌아오면 `POST /me/identities/{provider}`로 마무리한다. `@sayren/storefront-sdk/auth`의 `linkIdp()`가 PKCE와 state를 만든다.

POST
/storefront/v1/me/identities/{provider}/authorize

로그인한 구매자에 공급자 계정을 연결하는 주소를 돌려준다. 본문은 소셜 로그인 시작과 같고, 돌아오면 POST /me/identities/{provider}로 마무리한다. @sayren/storefront-sdk/auth의 linkIdp()가 PKCE와 state를 만든다.

Authorization

headerAuthorizationBearer <token>

회원 accessToken

Path Parameters

provider*string

Request Body

application/json
  1. body
redirectUri*string
Formaturi
codeChallenge*string
Match^[A-Za-z0-9_-]{43}$
state*string
Length16 <= length <= 128
agreements?

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
curl -X POST 'https://api.sayren.io/storefront/v1/me/identities/string/authorize' \  -H 'Content-Type: application/json' \  -d '{  "redirectUri": "http://example.com",  "codeChallenge": "string",  "state": "stringstringstri"}'
{  "meta": {    "status": 200,    "code": "OK",    "message": "OK",    "isSuccess": true  },  "data": {    "url": "http://example.com"  },  "error": null}