This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# The below code is an attemt to understand Elliptic Curve Cryptography | |
# by implementing Elliptic Curve Diffie-Hellman key exchange from scratch. | |
# DON'T USE THIS CODE IN YOUR APP!! | |
# It is not safe and is intended only as a learning tool. | |
import secrets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios, { AxiosError, AxiosResponse } from 'axios'; | |
import token from './somewhere'; | |
interface Todo { | |
id: string; | |
title: string; | |
} | |
interface User { | |
id: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (user, context, callback) { | |
if (context.clientMetadata && context.clientMetadata.shopify_domain && context.clientMetadata.shopify_multipass_secret) | |
{ | |
const RULE_NAME = 'shopify-multipasstoken'; | |
const CLIENTNAME = context.clientName; | |
console.log(`${RULE_NAME} started by ${CLIENTNAME}`); | |
const now = (new Date()).toISOString(); | |
let shopifyToken = { | |
email: user.email, |