You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The admin will add your public key to `secret.yaml`:
33
+
The admin needs to register your public key on the server. This can be done in two ways:
34
+
35
+
#### Option A: Using `secret.yaml` (Local/Standard)
36
+
37
+
Add the public key to `secret.yaml`:
34
38
35
39
```yaml
36
-
clients:
40
+
JWT_CLIENTS:
37
41
your_app_name:
38
-
public_key: |
42
+
PUB_KEY: |
39
43
-----BEGIN PUBLIC KEY-----
40
44
(your public key here)
41
45
-----END PUBLIC KEY-----
42
46
```
43
47
44
-
Then they'll restart the server.
48
+
#### Option B: Using Environment Variables (Heroku/Cloud)
49
+
50
+
For platforms like Heroku where files are not persistent, use environment variables:
51
+
52
+
1. **Single Client Variable**:
53
+
Set an environment variable named `JWT_CLIENT_YOUR_APP_NAME_PUB_KEY` (replace `YOUR_APP_NAME` with the actual client ID in uppercase) with the content of the public key.
54
+
55
+
```bash
56
+
# Example for Heroku
57
+
heroku config:set JWT_CLIENT_YOUR_APP_NAME_PUB_KEY="-----BEGIN PUBLIC KEY-----
0 commit comments