I hereby claim:
- I am edinnen on github.
- I am ethanjdinnen (https://keybase.io/ethanjdinnen) on keybase.
- I have a public key whose fingerprint is 2AC2 1690 A67C 409A CE3A 83BD A994 E6A7 D022 C7EC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const jwt = require('jsonwebtoken'); | |
const fs = require('fs'); | |
const privateKey = fs.readFileSync('/Path/To/appleAuth/key.p8'); | |
const client_id = 'YOUR_CLIENT_ID'; | |
const team = 'YOUR_TEAM_ID'; | |
const key_id = 'YOUR_KEY_ID'; | |
function _generateToken(clientId, teamId, pk, exp, keyid) { | |
try { | |
const claims = { |
#!/bin/bash | |
totalLines=0 | |
requestTransfer() { | |
transferSub=$(curl -sS --request POST $1 \ | |
--header 'Content-Type: application/x-www-form-urlencoded' \ | |
--header "Authorization: Bearer $2" \ | |
-d "sub=$3&target=$4&client_id=$5&client_secret=$6" \ | |
| jq -r '.transfer_sub') | |
printf '%s,%s,%s,%s\n' "$7" "$8" "$9" "$transferSub" | |
} |
/* eslint-disable no-console */ | |
const jwt = require('jsonwebtoken'); | |
const fs = require('fs'); | |
let bundleId, teamId, keyId, keyPath; | |
const SIX_MONTH_EXPIRY = Math.floor(Date.now() / 1000) + 86400 * 180; | |
// generateToken is a helper function to generate an ES256 JWT token. | |
function generateToken(bundleId, teamId, pk, exp, keyid) { | |
try { |
#!/bin/bash | |
linux_install(){ | |
echo "Installing brew package manager. Required to install nerdctl..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo "Installing nerdctl..." | |
brew install nerdctl | |
echo "Downloading rancher-desktop to ~/rancher-desktop" |