Skip to content

Commit b612476

Browse files
authored
Make Client::$plainSecret public (#1719)
1 parent f2d6e9e commit b612476

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/Client.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ class Client extends Model
5151
/**
5252
* The temporary plain-text client secret.
5353
*
54+
* This is only available during the request that created the client.
55+
*
5456
* @var string|null
5557
*/
56-
protected $plainSecret;
58+
public $plainSecret;
5759

5860
/**
5961
* Bootstrap the model and its traits.
@@ -136,18 +138,6 @@ public function setScopesAttribute(?array $scopes)
136138
$this->attributes['scopes'] = $scopes;
137139
}
138140

139-
/**
140-
* The temporary non-hashed client secret.
141-
*
142-
* This is only available once during the request that created the client.
143-
*
144-
* @return string|null
145-
*/
146-
public function getPlainSecretAttribute()
147-
{
148-
return $this->plainSecret;
149-
}
150-
151141
/**
152142
* Set the value of the secret attribute.
153143
*

0 commit comments

Comments
 (0)