Skip to content

Instantly share code, notes, and snippets.

@tofusoup429
Last active March 18, 2022 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tofusoup429/8e95c61784d0468e339fdb3a87133d66 to your computer and use it in GitHub Desktop.
Save tofusoup429/8e95c61784d0468e339fdb3a87133d66 to your computer and use it in GitHub Desktop.
const valid_tokens_for_applications = [
"a147549773dfc1830f8568aef1",
"54977dfc1814755683dfaef773"
]
exports.handler = async (event) => {
let {headers:{authorization}} = event;
const response = {
"isAuthorized": valid_tokens_for_applications.includes(authorization)
}
return response;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment