---
title: "requestAutoSignInAuthorizationWithCompletionHandler:"
framework: videosubscriberaccount
role: symbol
role_heading: Instance Method
path: "videosubscriberaccount/vsuseraccountmanager/requestautosigninauthorizationwithcompletionhandler:"
---

# requestAutoSignInAuthorizationWithCompletionHandler:

Presents a modal sheet that offers a person to opt in to Automatic Sign-In.

## Declaration

```occ
- (void) requestAutoSignInAuthorizationWithCompletionHandler:(void (^)(VSAutoSignInTokenUpdateContext *updateContext, NSError *error)) completion;
```

## Discussion

Discussion Call this method after a successful sign in to your service. You might also call this method through custom UI that your app implements to offer Automatic Sign-In. If the person approves the prompt, the framework sets the authorization status to VSUserAccountManager.AutoSignInAuthorization.granted. If the person dismisses the prompt without approving, the system leaves the authorization status VSUserAccountManager.AutoSignInAuthorization.notDetermined and the framework doesn’t prompt them again until the app calls requestAutoSignInAuthorization() once more. important: Avoid calling this method when the person might not expect a prompt, for example, while they’re viewing streaming media. For more information, see Signing people in to their media accounts automatically.

## See Also

### Signing people in automatically

- [VSAutoSignInToken](videosubscriberaccount/vsautosignintoken.md)
- [VSAutoSignInTokenUpdateContext](videosubscriberaccount/vsautosignintokenupdatecontext.md)
- [VSAutoSignInAuthorization](videosubscriberaccount/vsautosigninauthorization.md)
- [queryAutoSignInTokenWithCompletionHandler:](videosubscriberaccount/vsuseraccountmanager/queryautosignintokenwithcompletionhandler:.md)
- [deleteAutoSignInTokenWithCompletionHandler:](videosubscriberaccount/vsuseraccountmanager/deleteautosignintokenwithcompletionhandler:.md)
- [updateAutoSignInToken:updateContext:completionHandler:](videosubscriberaccount/vsuseraccountmanager/updateautosignintoken:updatecontext:completionhandler:.md)
