Skip to content

Commit a37d294

Browse files
committed
Document loading keys from env file
This was added in laravel/passport#683
1 parent d5f491e commit a37d294

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

passport.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ If necessary, you may define the path where Passport's keys should be loaded fro
184184
Passport::loadKeysFrom('/secret-keys/oauth');
185185
}
186186

187+
Additionaly, you may load the keys from the `.env` file directly:
188+
189+
PASSPORT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n<private key here>\n-----END RSA PRIVATE KEY-----"
190+
PASSPORT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\n<public key here>\n-----END PUBLIC KEY-----\n"
191+
187192
<a name="configuration"></a>
188193
## Configuration
189194

0 commit comments

Comments
 (0)