Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Revert breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Sethuram committed Feb 6, 2020
1 parent 00c9e44 commit 5f1d4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/node/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export class AuthService {
private signerCache: { [key: string]: string } = {};
constructor(private readonly channelRepo: ChannelRepository) {}

async getNonce(address: string): Promise<any> {
async getNonce(address: string): Promise<string> {
if (!isEthAddress(address)) {
return JSON.stringify({ err: `Invalid address: ${address}` });
}
const nonce = hexlify(randomBytes(nonceLen));
const expiry = Date.now() + nonceTTL;
this.nonces[nonce] = { address, expiry };
logger.debug(`getNonce: Gave address ${address} a nonce that expires at ${expiry}: ${nonce}`);
return { expiry, nonce };
return nonce;
}

useVerifiedMultisig(callback: any): any {
Expand Down

0 comments on commit 5f1d4b8

Please sign in to comment.