DigitalConsumer.ISS/src/helpers/clientauth-helper.js
2024-11-18 10:02:38 -06:00

15 lines
468 B
JavaScript

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