diff --git a/src/services/authenticator/authenticatorService.ts b/src/services/authenticator/authenticatorService.ts index b0ae58ef6..9928f8b41 100644 --- a/src/services/authenticator/authenticatorService.ts +++ b/src/services/authenticator/authenticatorService.ts @@ -1,5 +1,5 @@ import HTTPService from 'services/HTTPService'; -import { AuthEntity } from 'types/authenticator/auth_entity'; +import { AuthEntity } from 'types/authenticator/api'; import { Code } from 'types/authenticator/code'; import ComlinkCryptoWorker from 'utils/comlink/ComlinkCryptoWorker'; import { getEndpoint } from 'utils/common/apiUtil'; @@ -61,7 +61,7 @@ export const getAuthCodes = async (): Promise => { } }; -export const getAuthKey = async () => { +export const getAuthKey = async (): Promise => { try { const resp = await HTTPService.get( `${ENDPOINT}/authenticator/key`, diff --git a/src/types/authenticator/auth_entity.ts b/src/types/authenticator/api.ts similarity index 70% rename from src/types/authenticator/auth_entity.ts rename to src/types/authenticator/api.ts index cd97f5262..569df8185 100644 --- a/src/types/authenticator/auth_entity.ts +++ b/src/types/authenticator/api.ts @@ -6,3 +6,8 @@ export interface AuthEntity { createdAt: number; updatedAt: number; } + +export interface AuthKey { + encryptedKey: string; + header: string; +}