Skip to content

Instantly share code, notes, and snippets.

View jordibruin's full-sized avatar

Jordi Bruin jordibruin

View GitHub Profile
//
// SamView.swift
// CloudKit-UI-test
//
// Created by Jordi Bruin on 03/07/2020.
// Copyright © 2020 Good Snooze. All rights reserved.
//
import SwiftUI
# setup
# pip install cryptography pyjwt
# ref.
# http://gobiko.com/blog/token-based-authentication-http2-example-apns/
import jwt
import time
ALGORITHM = 'ES256'