DigitalConsumer.ISS/src/helpers/clientauth-helper.js
Jeremy Zimmerman 6ee9223253 Updates.
2023-09-18 18:01:41 -04:00

21 lines
526 B
JavaScript

import { useMainStore } from '@/store';
export function validateISSClientTag(clientTag) {
const store = useMainStore();
return store.validateClientTag(clientTag)
.then(
(response) => response,
() => null
);
}
export function validateISSClientSignature(clientTag, token, signature) {
const store = useMainStore();
return store.validateClientSignature(clientTag, token, signature)
.then(
(response) => response,
() => null
);
}