UNPKG

@spree/storefront-api-v2-sdk

Version:

Node module to easily integrate your JavaScript or TypeScript application with Spree API V2. You can create an entirely custom Storefront in JS/TS with this package including one page checkout, Single Page Apps, PWAs and so on

22 lines (21 loc) 1.03 kB
import Http from '../Http'; import type { AuthTokenAttr, GetTokenOptions, RefreshTokenAttr, RefreshTokenOptions, RevokeTokenAttr, RevokeTokenOptions } from '../interfaces/Authentication'; import type { IOAuthTokenResult } from '../interfaces/Token'; import type { EmptyObjectResult } from '../interfaces/EmptyObject'; export default class Authentication extends Http { getToken(options: GetTokenOptions): Promise<IOAuthTokenResult>; /** * @deprecated Use the combined options signature instead. */ getToken(params: AuthTokenAttr): Promise<IOAuthTokenResult>; refreshToken(options: RefreshTokenOptions): Promise<IOAuthTokenResult>; /** * @deprecated Use the combined options signature instead. */ refreshToken(params: RefreshTokenAttr): Promise<IOAuthTokenResult>; revokeToken(optons: RevokeTokenOptions): Promise<EmptyObjectResult>; /** * @deprecated Use the combined options signature instead. */ revokeToken(params: RevokeTokenAttr): Promise<EmptyObjectResult>; }