| 1 | import { createAuthPlugin } from "@better-auth-ui/core"; |
| 2 | import { |
| 3 | deviceAuthorizationPlugin as coreDeviceAuthorizationPlugin, |
| 4 | type DeviceAuthorizationPluginOptions, |
| 5 | } from "@better-auth-ui/core/plugins/device-authorization"; |
| 6 | |
| 7 | import { DeviceAuthorization } |
| 8 | |
| 9 | export const deviceAuthorizationPlugin = |
| 10 | coreDeviceAuthorizationPlugin.id, |
| 11 | (options: DeviceAuthorizationPluginOptions |
| 12 | ...coreDeviceAuthorizationPlugin(options |
| 13 | views: { |
| 14 | auth: { |
| 15 | deviceAuthorization: DeviceAuthorization, |
| 16 | }, |
| 17 | }, |
| 18 | }), |
| 19 | ); |