Is it because the JWT does not contain all fields?
FilterOptionsProps<T = any> = {
id: string | number;
user: Partial<User>;
hi @thgh -
Partial<User>
is used as there are cases when no user is passed through to
filterOptions
. We could also use
User | null
which might be clearer.
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.