[wallet-dev-${your name}]
aws_access_key_id =
aws_secret_access_key =
sls create_domain --stage <wallet-${your name}-dev>
yarn dev --stage <wallet-${your name}-dev>
Example enpoint: https://wallet-adam-dev-api.shopwalletapp.com/v1/api/shop-wallet/auth/sign-up
POST <your dev URL>/auth/sign-in
Parameter | Type | Description |
---|---|---|
phoneNumber |
string |
Required. Your phone number |
Returns:
interface SignInResponse {
sessionId: string;
}
POST <your dev URL>/auth/sign-in/verify
Parameter | Type | Description |
---|---|---|
phoneNumber |
string |
Required. Your phone number |
otpCode |
string |
Required. 555666 |
sessionId |
string |
Required. Session you retrieved after Login |
Returns:
interface AuthTokens {
accessToken: string;
refreshToken: string;
}
POST <your dev URL>/auth/refreshToken
Parameter | Type | Description |
---|---|---|
refreshToken |
string |
Required. Your refresh token |
phoneNumber |
string |
Required. Your phone number |
Returns:
interface AuthTokens {
accessToken: string;
refreshToken: string;
}