Skip to content

Commit

Permalink
Document loading keys from env file
Browse files Browse the repository at this point in the history
This was added in laravel/passport#683
  • Loading branch information
driesvints authored and gdebrauwer committed Jun 20, 2019
1 parent 54b1bcf commit 479c746
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions passport.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ If necessary, you may define the path where Passport's keys should be loaded fro
Passport::loadKeysFrom('/secret-keys/oauth');
}

Additionaly, you may load the keys from the `.env` file directly:

PASSPORT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n<private key here>\n-----END RSA PRIVATE KEY-----"
PASSPORT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\n<public key here>\n-----END PUBLIC KEY-----\n"

<a name="configuration"></a>
## Configuration

Expand Down

0 comments on commit 479c746

Please sign in to comment.