Send feedback
FirebaseAuth Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
IDTokenChangesSequence
@available ( macOS 15.0 , iOS 18.0 , watchOS 11.0 , tvOS 18.0 , visionOS 2.0 , * )
struct IDTokenChangesSequence : AsyncSequence , @unchecked Sendable
An AsyncSequence that emits User? values whenever the ID token changes.
This struct is the concrete type returned by the Auth.idTokenChanges property.
Important
This type is marked @unchecked Sendable because the underlying Auth object
is not explicitly marked Sendable by the framework. However, the operations performed
(adding and removing listeners) are known to be thread-safe.
Declaration
Swift
public typealias Element = User ?
Declaration
Swift
@available ( macOS 15.0 , iOS 18.0 , watchOS 11.0 , tvOS 18.0 , visionOS 2.0 , * )
public typealias Failure = Never
Declaration
Swift
public typealias AsyncIterator = Iterator
Creates a new sequence for monitoring ID token changes.
Declaration
Swift
public init ( _ auth : Auth )
Parameters
auth
The Auth instance to monitor.
Creates and returns an iterator for this asynchronous sequence.
Declaration
Swift
public func makeAsyncIterator () -> Iterator
Return Value
An Iterator for IDTokenChangesSequence.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-08 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-08 UTC."],[],[]]