@notifi-network/notifi-frontend-client
Advanced tools
Comparing version 0.31.1-alpha.24 to 0.31.1-alpha.25
@@ -173,3 +173,3 @@ import { Types, Operations, NotifiService } from '@notifi-network/notifi-graphql'; | ||
declare type EnsureWebhookParams = Omit<Types.CreateWebhookTargetMutationVariables, 'name'>; | ||
declare const SIGNING_MESSAGE = "Sign in with Notifi \n\n No password needed or gas is needed. \n\n Clicking \u201CApprove\u201D only means you have proved this wallet is owned by you! \n\n This request will not trigger any transaction or cost any gas fees. \n\n Use of our website and service is subject to our terms of service and privacy policy. \n"; | ||
declare const SIGNING_MESSAGE = "Sign in with Notifi \n\n No password needed or gas is needed. \n\n Clicking \u201CApprove\u201D only means you have proved this wallet is owned by you! \n\n This request will not trigger any transaction or cost any gas fees. \n\n Use of our website and service is subject to our terms of service and privacy policy. \n \n 'Nonce:' "; | ||
declare type SignMessageParams = Readonly<{ | ||
@@ -176,0 +176,0 @@ walletBlockchain: 'SOLANA'; |
@@ -302,3 +302,4 @@ "use strict"; | ||
Use of our website and service is subject to our terms of service and privacy policy. | ||
`; | ||
'Nonce:' `; | ||
var NotifiFrontendClient = class { | ||
@@ -361,4 +362,3 @@ constructor(_configuration, _service, _storage) { | ||
const messageBuffer = new TextEncoder().encode( | ||
`${SIGNING_MESSAGE} | ||
'Nonce:' ${walletPublicKey}${tenantId}${timestamp.toString()}` | ||
`${SIGNING_MESSAGE}${walletPublicKey}${tenantId}${timestamp.toString()}` | ||
); | ||
@@ -376,4 +376,3 @@ const signedBuffer = await signMessageParams.signMessage(messageBuffer); | ||
const signature = await signMessageParams.signMessage( | ||
`${SIGNING_MESSAGE} | ||
'Nonce:`, | ||
SIGNING_MESSAGE, | ||
timestamp | ||
@@ -380,0 +379,0 @@ ); |
@@ -39,3 +39,3 @@ import type { FilterOptions } from '@notifi-network/notifi-core'; | ||
// modify the string literal, which then causes authentication to fail due to different strings | ||
export const SIGNING_MESSAGE = `Sign in with Notifi \n\n No password needed or gas is needed. \n\n Clicking “Approve” only means you have proved this wallet is owned by you! \n\n This request will not trigger any transaction or cost any gas fees. \n\n Use of our website and service is subject to our terms of service and privacy policy. \n`; | ||
export const SIGNING_MESSAGE = `Sign in with Notifi \n\n No password needed or gas is needed. \n\n Clicking “Approve” only means you have proved this wallet is owned by you! \n\n This request will not trigger any transaction or cost any gas fees. \n\n Use of our website and service is subject to our terms of service and privacy policy. \n \n 'Nonce:' `; | ||
@@ -119,3 +119,3 @@ export type SignMessageParams = | ||
const messageBuffer = new TextEncoder().encode( | ||
`${SIGNING_MESSAGE} \n 'Nonce:' ${walletPublicKey}${tenantId}${timestamp.toString()}`, | ||
`${SIGNING_MESSAGE}${walletPublicKey}${tenantId}${timestamp.toString()}`, | ||
); | ||
@@ -134,3 +134,3 @@ | ||
const signature = await signMessageParams.signMessage( | ||
`${SIGNING_MESSAGE} \n 'Nonce:`, | ||
SIGNING_MESSAGE, | ||
timestamp, | ||
@@ -137,0 +137,0 @@ ); |
{ | ||
"name": "@notifi-network/notifi-frontend-client", | ||
"version": "0.31.1-alpha.24+aa14dc1", | ||
"version": "0.31.1-alpha.25+fe59630", | ||
"description": "The frontend client for Notifi", | ||
@@ -36,7 +36,7 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@notifi-network/notifi-graphql": "^0.31.1-alpha.24+aa14dc1", | ||
"@notifi-network/notifi-graphql": "^0.31.1-alpha.25+fe59630", | ||
"graphql-request": "^5.0.0", | ||
"localforage": "^1.10.0" | ||
}, | ||
"gitHead": "aa14dc1f3c4c742068351d9a06ca5165bb6393e7" | ||
"gitHead": "fe59630a1dd690afa5b04632fce5418a589d6968" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
85841
2403