-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: secures the user response from the me auth route (#3409)
- Loading branch information
1 parent
9fa4a8f
commit 26939a3
Showing
5 changed files
with
109 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,59 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* This file was automatically generated by Payload. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config, | ||
* and re-run `payload generate:types` to regenerate this file. | ||
*/ | ||
|
||
export interface Config {} | ||
/** | ||
* This interface was referenced by `Config`'s JSON-Schema | ||
* via the `definition` "users". | ||
*/ | ||
export interface Config { | ||
collections: { | ||
users: User; | ||
'api-keys': ApiKey; | ||
}; | ||
globals: {}; | ||
} | ||
export interface User { | ||
id: string; | ||
adminOnlyField?: string; | ||
roles: ('admin' | 'editor' | 'moderator' | 'user' | 'viewer')[]; | ||
namedSaveToJWT?: string; | ||
group?: { | ||
liftedSaveToJWT?: string; | ||
}; | ||
groupSaveToJWT?: { | ||
saveToJWTString?: string; | ||
saveToJWTFalse?: string; | ||
}; | ||
saveToJWTTab: { | ||
test?: string; | ||
}; | ||
tabSaveToJWTString: { | ||
includedByDefault?: string; | ||
}; | ||
tabLiftedSaveToJWT?: string; | ||
unnamedTabSaveToJWTString?: string; | ||
unnamedTabSaveToJWTFalse?: string; | ||
custom?: string; | ||
updatedAt: string; | ||
createdAt: string; | ||
enableAPIKey?: boolean; | ||
apiKey?: string; | ||
apiKeyIndex?: string; | ||
email?: string; | ||
email: string; | ||
resetPasswordToken?: string; | ||
resetPasswordExpiration?: string; | ||
salt?: string; | ||
hash?: string; | ||
loginAttempts?: number; | ||
lockUntil?: string; | ||
createdAt: string; | ||
password?: string; | ||
} | ||
export interface ApiKey { | ||
id: string; | ||
updatedAt: string; | ||
createdAt: string; | ||
enableAPIKey?: boolean; | ||
apiKey?: string; | ||
apiKeyIndex?: string; | ||
} |