Skip to content

Conversation

@aaronma37
Copy link
Collaborator

No description provided.

@aaronma37 aaronma37 force-pushed the new_verification_string branch from f0743c7 to 71fedac Compare April 22, 2023 02:07
@aaronma37
Copy link
Collaborator Author

Google sheets for decoding is just this function

  return JSON.parse(Utilities.newBlob(Utilities.base64Decode(str)).getDataAsString());

For a full test, use below

function decode(str){
return JSON.parse(Utilities.newBlob(Utilities.base64Decode(str)).getDataAsString());
}

let test = "eyJndWlkIjoiUGxheWVyLTUxMzktMDIxMjYzOTciLCAidGltZV90cmFja2VkIjozMDE5LCAiY2xhc3MiOiJXQVJSSU9SIiwgInRyYWRlX3BhcnRlcnMiOnt9LCAiYWNoaWV2ZW1lbnRzIjpbNDEsIDQ3LCA1MSwgNCwgMzgsIDIzLCAzMF0sICJyYWNlIjoiR25vbWUiLCAibGV2ZWwiOjEsICJjb252ZXJ0ZWRfc3VjY2Vzc2Z1bGx5IjoiRkFMU0UiLCAicmVhbG0iOiJCbG9vZHNhaWwgQnVjY2FuZWVycyIsICJuYW1lIjoiQXNkZmF6aGoiLCAiZGVhdGhzIjowLCAiZ2FtZV92ZXJzaW9uX2NoZWNrZXIiOiJFcmEiLCAicGFzc2l2ZV9hY2hpZXZlbWVudHMiOlszMSwgMzEsIDMxLCAzMSwgMzEsIDMxLCAzMSwgMzEsIDMxLCAzMSwgMzEsIDMxXSwgInZlcnNpb24iOiIwLjExLjIyIiwgInNhY3JpZmljZWRfYXQiOiIiLCAicGxheWVkX3RpbWVfZ2FwX3dhcm5pbmdzIjpbeyJkYXRlIjoiMDRcLzIxXC8yMyAxODoyMDowOSIsICJkdXJhdGlvbl9zaW5jZV9sYXN0X3JlY29yZGluZyI6NzMwfV0sICJidWJibGVfaGVhcnRoX2luY2lkZW50cyI6e30sICJ0aW1lX3BsYXllZCI6Mzk3NH0="

console.log(decode(test))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant