Skip to content

Commit

Permalink
fix(auth): export useUser hook for external plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tadayosi committed Nov 16, 2023
1 parent 44f4d34 commit 308ce3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hawtio/src/auth/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'
import { userService } from './user-service'

/**
* Custom React hook for using Hawtio plugins.
* Custom React hook for using Hawtio users.
*/
export function useUser() {
const [username, setUsername] = useState('')
Expand Down
1 change: 1 addition & 0 deletions packages/hawtio/src/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { PUBLIC_USER } from './globals'
export { useUser } from './hooks'
export { userService } from './user-service'

0 comments on commit 308ce3f

Please sign in to comment.