<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoSubscriberAccount",
  "identifier" : "/documentation/VideoSubscriberAccount/VSUserAccountManager/updateAutoSignInToken:updateContext:completionHandler:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Video Subscriber Account"
    ],
    "preciseIdentifier" : "c:objc(cs)VSUserAccountManager(im)updateAutoSignInToken:updateContext:completionHandler:"
  },
  "title" : "updateAutoSignInToken:updateContext:completionHandler:"
}
-->

# updateAutoSignInToken:updateContext:completionHandler:

Sets the current Automatic Sign-In token.

```
- (void) updateAutoSignInToken:(NSString *) autoSignInToken updateContext:(VSAutoSignInTokenUpdateContext *) context completionHandler:(void (^)(NSError *error)) completion;
```

## Parameters

`autoSignInToken`

The new token value to store in the person’s Apple Account. Your app determines the contents of this string using a mechanism you determine fitting to identify the account. In addition, ensure its value is of sufficient length, complexity, and security. For more information on setting this property, see [`value`](/documentation/VideoSubscriberAccount/VSAutoSignInToken/value).

`context`

The object the framework provides that reflects the person’s choice in the authorization prompt; pass the result of the [`requestAutoSignInAuthorizationWithCompletionHandler:`](/documentation/VideoSubscriberAccount/VSUserAccountManager/requestAutoSignInAuthorizationWithCompletionHandler:) method.

`completion`

Code you supply that the framework runs after storing the updated token.

## Discussion

Call this method when generating a new token value for an account. To update the token, request the person’s authorization for Automatic Sign-In. For more information, see [`requestAutoSignInAuthorization()`](/documentation/VideoSubscriberAccount/VSUserAccountManager/requestAutoSignInAuthorization()).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)