13 lines
288 B
TypeScript
13 lines
288 B
TypeScript
import { IGlobalVariable } from '@automatisch/types';
|
|
|
|
const verifyCredentials = async ($: IGlobalVariable) => {
|
|
const { data } = await $.http.get('/getMe');
|
|
const { result: me } = data;
|
|
|
|
await $.auth.set({
|
|
screenName: me.first_name,
|
|
});
|
|
};
|
|
|
|
export default verifyCredentials;
|