File tree 2 files changed +6
-6
lines changed
src/Lodash/Auth/Contracts
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
interface AuthServiceContract
8
8
{
9
- public function findOneForAuth (int $ id ): ?UserContract ;
9
+ public function findOneForAuth (int | string $ id ): ?UserContract ;
10
10
11
- public function findOneForAuthOrFail (int $ id ): UserContract ;
11
+ public function findOneForAuthOrFail (int | string $ id ): UserContract ;
12
12
13
- public function retrieveUserById (int $ id ): ?UserContract ;
13
+ public function retrieveUserById (int | string $ id ): ?UserContract ;
14
14
15
15
public function updateAccessToken (string $ accessTokenIdentifier , int $ userId ): void ;
16
16
@@ -30,7 +30,7 @@ public function getEmulatorUser(): ?UserContract;
30
30
31
31
public function retrieveByCredentials (array $ credentials ): ?UserContract ;
32
32
33
- public function retrieveUserByToken (int $ identifier , string $ token ): ?UserContract ;
33
+ public function retrieveUserByToken (int | string $ identifier , string $ token ): ?UserContract ;
34
34
35
35
public function validateCredentials (UserContract $ user , string $ password ): bool ;
36
36
Original file line number Diff line number Diff line change 8
8
9
9
interface UserRepositoryContract extends UserRepositoryInterface
10
10
{
11
- public function findOneForAuth (int $ id ): ?UserContract ;
11
+ public function findOneForAuth (int | string $ id ): ?UserContract ;
12
12
13
13
public function getGoogleUserByAccessToken (string $ googleToken ): ?array ;
14
14
15
15
public function getGoogleUserByIdToken (string $ googleToken ): ?array ;
16
16
17
17
public function retrieveByCredentials (array $ credentials ): ?UserContract ;
18
18
19
- public function retrieveUserByToken (int $ identifier , string $ token ): ?UserContract ;
19
+ public function retrieveUserByToken (int | string $ identifier , string $ token ): ?UserContract ;
20
20
21
21
public function updateRememberToken (UserContract $ user , string $ token ): void ;
22
22
}
You can’t perform that action at this time.
0 commit comments