@remap/authenticate-middleware
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@remap/authenticate-middleware", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ReMap Authenticate Middleware", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,2 +25,14 @@ # authenticate-middleware | ||
) | ||
// ./services/authentication example | ||
module.exports = async idToken => { | ||
const res = await fetch(process.env.AUTHENTICATION_ENDPOINT, { | ||
method: 'POST', | ||
body: JSON.stringify({ id_token: idToken }), | ||
mode: 'cors', | ||
}) | ||
return await res.json() | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3181
38