Skip to content

Commit 03e4e51

Browse files
committed
formatting
1 parent e46ebc5 commit 03e4e51

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

UPGRADE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ PR: https://github.com/laravel/passport/pull/1145
1818

1919
Client secrets may now be stored using a Bcrypt hash. However, before enabling this functionality, please consider the following. First, there is no way to reverse the hashing process once you have migrated your existing tokens. Secondly, when hashing client secrets, you will only have one opportunity to display the plain-text value to the user before it is hashed and stored in the database.
2020

21-
#### Personal Access Client
21+
#### Personal Access Clients
2222

23-
Before you continue, there's a special case for personal access clients. You should set your personal access client ID and unhashed secret in your `.env` file:
23+
Before you continue, you should set your personal access client ID and unhashed secret in your `.env` file:
2424

25-
PASSPORT_PERSONAL_ACCESS_CLIENT_ID=
26-
PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=
25+
PASSPORT_PERSONAL_ACCESS_CLIENT_ID=client-id-value
26+
PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=unhashed-client-secret-value
2727

28-
After this, you should set register them with the `Passport` instance by playing the following calls within the `boot` method of your `AppServiceProvider`:
28+
Next, you should set register these values by placing the following calls within the `boot` method of your `AppServiceProvider`:
2929

3030
Passport::personalAccessClientId(config('passport.personal_access_token.id'));
3131
Passport::personalAccessClientSecret(config('passport.personal_access_token.secret'));
3232

33-
Make sure to do this before hashing your secrets using the step below, otherwise they'll be lost forever.
33+
> Make sure you follow the instructions above before hashing your secrets. Otherwise, irreversible data loss may occur.
3434
3535
#### Hashing Existing Secrets
3636

config/passport.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
| Personal Access Client
3636
|--------------------------------------------------------------------------
3737
|
38-
| If you enable client hashing, you should set the personal access
39-
| client id and secret in your config file. This way they will be
40-
| used when you issue access tokens to your users.
38+
| If you enable client hashing, you should set the personal access client
39+
| ID and unhashed secret within your environment file. The values will
40+
| get used while issuing fresh personal access tokens to your users.
4141
|
4242
*/
4343

0 commit comments

Comments
 (0)