AuthCategoryDeviceBehavior
public protocol AuthCategoryDeviceBehavior : AnyObject
-
fetchDevices(options:
Asynchronous) Fetch devices assigned to the current device
Declaration
Swift
func fetchDevices(options: AuthFetchDevicesRequest.Options?) async throws -> [AuthDevice]
Parameters
options
Parameters specific to plugin behavior.
-
forgetDevice(_:
Asynchronousoptions: ) Forget device from the user
Declaration
Swift
func forgetDevice(_ device: AuthDevice?, options: AuthForgetDeviceRequest.Options?) async throws
Parameters
authDevice
Device to be forgotten
options
Parameters specific to plugin behavior.
-
rememberDevice(options:
Asynchronous) Make the current user device as remebered
Declaration
Swift
func rememberDevice(options: AuthRememberDeviceRequest.Options?) async throws
Parameters
options
Parameters specific to plugin behavior.