Install
npm i @shop25/cp-auth
Usage
import { getAuthService } from '@shop25/cp-auth'
const service = getAuthService('https://base-url.com');
service.getAuthToken();
service.getUser();
service.logout();
# logout пока не работает (ошибка csrf).
npm i @shop25/cp-auth
import { getAuthService } from '@shop25/cp-auth'
const service = getAuthService('https://base-url.com');
service.getAuthToken();
service.getUser();
service.logout();
# logout пока не работает (ошибка csrf).
npm i @shop25/cp-auth
3
0.0.15
none
4.69 kB
7