File size: 288 Bytes
4e23b01
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import type { IAuthTokenService } from '../../src/services/auth/authTokenService';

export function fixedTokenAuth(token = 'test-token'): IAuthTokenService {
  return {
    _serviceBrand: undefined,
    getToken: () => token,
    isValid: async (candidate) => candidate === token,
  };
}