server-side-app-integrity-check
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "server-side-app-integrity-check", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Server side library to generate nonces and check attestation tokens received from client apps within Android's Play Integrity API or Apple's App Attest API. It supports both classic and standard requests of Play Integrity API.", | ||
@@ -5,0 +5,0 @@ "main": "src/playIntegrity.js", |
@@ -67,3 +67,4 @@ import * as jose from "jose"; | ||
*/ | ||
export async function decryptPlayIntegrity(token, mode) { | ||
exports.decryptPlayIntegrity = async function(token, mode) { | ||
if (mode == "server") { | ||
@@ -140,2 +141,4 @@ logEvent('INFO', 'Processing token decryption and authentitation on-server. Google servers will not be contacted to perform this task.', 1); | ||
/** | ||
@@ -147,6 +150,3 @@ * Checks the validity of a received token representing an attestation object | ||
*/ | ||
export async function verifyPlayIntegrity( | ||
decryptedToken, | ||
nonce_truth, | ||
) { | ||
exports.verifyPlayIntegrity = async function(decryptedToken, nonce_truth) { | ||
@@ -153,0 +153,0 @@ // CHECK REQUEST DETAILS //////////////////////////////////////////// |
25274
324