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
optionsParameters specific to plugin behavior.
-
forgetDevice(_:Asynchronousoptions: ) Forget device from the user
Declaration
Swift
func forgetDevice(_ device: AuthDevice?, options: AuthForgetDeviceRequest.Options?) async throwsParameters
authDeviceDevice to be forgotten
optionsParameters specific to plugin behavior.
-
rememberDevice(options:Asynchronous) Make the current user device as remebered
Declaration
Swift
func rememberDevice(options: AuthRememberDeviceRequest.Options?) async throwsParameters
optionsParameters specific to plugin behavior.
View on GitHub