File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Authentication/Traits Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1515 */
1616trait HasAccessTokens
1717{
18+ /**
19+ * The current access token for the user.
20+ */
21+ private ?AccessToken $ currentAccessToken = null ;
22+
1823 /**
1924 * Generates a new personal access token for this user.
2025 */
@@ -142,7 +147,7 @@ public function tokenCant(string $scope): bool
142147 */
143148 public function currentAccessToken ()
144149 {
145- return $ this ->attributes [ ' activeAccessToken ' ] ?? null ;
150+ return $ this ->currentAccessToken ;
146151 }
147152
148153 /**
@@ -154,7 +159,7 @@ public function currentAccessToken()
154159 */
155160 public function setAccessToken (?AccessToken $ accessToken )
156161 {
157- $ this ->attributes [ ' activeAccessToken ' ] = $ accessToken ;
162+ $ this ->currentAccessToken = $ accessToken ;
158163
159164 return $ this ;
160165 }
You can’t perform that action at this time.
0 commit comments