amplify-swift/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Support/Constants/AuthPluginConstants.swift

19 lines
486 B
Swift

//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
import Foundation
struct AuthPluginConstants {
/// The time interval under which the refresh of UserPool or awsCredentials tokens will happen
static let sessionRefreshInterval: TimeInterval = 2 * 60
/// Prefix for the attribute that will be used in the Cognito API calls
static let cognitoIdentityUserUserAttributePrefix = "userAttributes."
}