Skip to content

Commit

Permalink
feat: add roles to User interface (#65)
Browse files Browse the repository at this point in the history
* add role to User interface

* fix: roles is an array
  • Loading branch information
amaghzaz-y authored Jun 20, 2024
1 parent 06989b1 commit cf224e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import * as FormData from 'form-data'
import { Config } from './config'
import Request from './request'
import { CasdoorMfaProps } from './mfa'
import { Role } from './role'

export interface User {
owner: string
Expand Down Expand Up @@ -63,6 +64,7 @@ export interface User {
signupApplication?: string
hash?: string
preHash?: string
roles?: Role[]

createdIp?: string
lastSigninTime?: string
Expand Down

0 comments on commit cf224e6

Please sign in to comment.