Skip to content

adambaialiev/nft-marketplace-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Setup ~/.aws/credentials file

[wallet-dev-${your name}]
aws_access_key_id =
aws_secret_access_key =

Create your own dev domain

sls create_domain --stage <wallet-${your name}-dev>

Deploy your own dev environment

yarn dev --stage <wallet-${your name}-dev>

Example enpoint: https://wallet-adam-dev-api.shopwalletapp.com/v1/api/shop-wallet/auth/sign-up

Authentication Reference

Login

  POST <your dev URL>/auth/sign-in
Parameter Type Description
phoneNumber string Required. Your phone number

Returns:

interface SignInResponse {
	sessionId: string;
}

Login verify

  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;
}

Refresh token

  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;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published