hostEndpoints property

  1. @override
Iterable<AuthEndpointDescriptor<TContext>> get hostEndpoints
override

Implementation

@override
Iterable<AuthEndpointDescriptor<TContext>> get hostEndpoints => [
  _hostEndpoint(
    id: 'magicLink.$id.send',
    method: AuthOperationMethod.post,
    path: AuthRoutePath('/signin/$id'),
    operation: authMagicLinkSendRateLimitOperation,
    replaySafety: AuthMutationReplaySafety.repeatable,
  ),
  _hostEndpoint(
    id: 'magicLink.$id.verify',
    method: AuthOperationMethod.get,
    path: AuthRoutePath('/callback/$id'),
    operation: authMagicLinkVerifyRateLimitOperation,
    replaySafety: AuthMutationReplaySafety.singleUse,
  ),
];