---
title: requestAutoSignInAuthorization()
framework: videosubscriberaccount
role: symbol
role_heading: Instance Method
path: videosubscriberaccount/vsuseraccountmanager/requestautosigninauthorization()
---

# requestAutoSignInAuthorization()

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

## Declaration

```swift
func requestAutoSignInAuthorization() async throws -> VSUserAccountManager.AutoSignInTokenUpdateContext
```

## Mentioned in

Signing people in to their media accounts automatically

## Discussion

Discussion Call this method after a successful sign in to your streaming 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

- [VSUserAccountManager.AutoSignInToken](videosubscriberaccount/vsuseraccountmanager/autosignintoken-swift.struct.md)
- [VSUserAccountManager.AutoSignInTokenUpdateContext](videosubscriberaccount/vsuseraccountmanager/autosignintokenupdatecontext.md)
- [VSUserAccountManager.AutoSignInAuthorization](videosubscriberaccount/vsuseraccountmanager/autosigninauthorization.md)
- [autoSignInToken](videosubscriberaccount/vsuseraccountmanager/autosignintoken-swift.property.md)
- [deleteAutoSignInToken()](videosubscriberaccount/vsuseraccountmanager/deleteautosignintoken().md)
- [updateAutoSignInToken(_:updateContext:)](videosubscriberaccount/vsuseraccountmanager/updateautosignintoken(_:updatecontext:).md)
