Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 4a0df87

Browse files
committed
Improved login message
1 parent bf3baa7 commit 4a0df87

File tree

8 files changed

+69
-719
lines changed

8 files changed

+69
-719
lines changed

modules/ipfs-cpinner-client/src/auth-manager/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AuthManager {
3636
.then(res => res.status === 200 && !!res.data && res.data.challenge)
3737

3838
private signChallenge = (challenge: string) => this.personalSign(
39-
`Login to ${this.serviceUrl}\nVerification code: ${challenge}`
39+
`Are you sure you want to login to the RIF Data Vault?\nURL: ${this.serviceUrl}\nVerification code: ${challenge}`
4040
).then(sig => ({ did: this.did, sig }))
4141

4242
private login = (): Promise<LoginResponse> => this.getChallenge()

modules/ipfs-cpinner-client/test/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ export const startService = async (dbName: string, port?: number): Promise<{
8989
serviceUrl,
9090
challengeSecret: 'theSecret',
9191
serviceDid,
92-
serviceSigner: serviceIdentity.signer
92+
serviceSigner: serviceIdentity.signer,
93+
loginMessageHeader: 'Are you sure you want to login to the RIF Data Vault?'
9394
}
9495

9596
const dbConnection = await createSqliteConnection(dbName)

0 commit comments

Comments
 (0)