优化
This commit is contained in:
10
server/services/openapi/oidc/account.ts
Normal file
10
server/services/openapi/oidc/account.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { User } from './model';
|
||||
|
||||
export async function claimUserInfo(userId: string) {
|
||||
const baseUserInfo = await User.getUserBaseInfo(userId);
|
||||
|
||||
return {
|
||||
...baseUserInfo,
|
||||
sub: userId,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user