Login Result
Result returned by Swan.login / Swan.loginForTests.
Properties
Link copied to clipboard
the user's resolved CDID — currentCDID when the server reports profileSwitched=true with a non-empty value, otherwise the existing currentCDID (may be the anonymous generatedCDID if the SDK was anonymous before login). May be null only on transient backend failures where the SDK couldn't read a CDID from the response.
Link copied to clipboard
true when the server reported the login triggered a server-side profile switch (i.e. the SDK is now bound to a different customer profile than before). false for repeat-login calls with the same identifier and for best-effort failure fallbacks.