decentralized and customizable links page on top of atproto
ligo.at
atproto
link-in-bio
python
uv
1import secrets
2import time
3from authlib.jose import JsonWebKey
4
5
6if __name__ == "__main__":
7 secret_key = secrets.token_hex()
8
9 now = int(time.time())
10 key = JsonWebKey.generate_key(
11 "EC", "P-256", options={"kid": f"demo-{now}"}, is_private=True
12 )
13 client_secret_jwk = key.as_json(is_private=True)
14
15 print(f'FLASK_SECRET_KEY="{secret_key}"')
16 print(f"FLASK_CLIENT_SECRET_JWK={client_secret_jwk}")