AuthProvider enum

지원하는 소셜 로그인 Provider

K-Auth에서 지원하는 OAuth Provider 목록입니다.

사용 예시

// 특정 Provider로 로그인
await kAuth.signIn(AuthProvider.kakao);

// 설정된 Provider 확인
if (kAuth.isConfigured(AuthProvider.naver)) {
  print('네이버 로그인 가능');
}

// Provider 정보 접근
print(AuthProvider.kakao.displayName);  // '카카오'
print(AuthProvider.kakao.supportsUnlink);  // true

Provider별 특징

Provider 연결해제 토큰갱신 비고
kakao O O Native App Key 필요
naver O O scope 미지원 (개발자센터에서 설정)
google O O iOS는 iosClientId 필요
apple X X iOS 13+, macOS만 지원
Inheritance
Available extensions

Values

kakao → const AuthProvider

카카오 로그인

KakaoConfig로 설정합니다. Native App Key가 필요합니다 (REST API Key 아님).

네이버 로그인

NaverConfig로 설정합니다. scope 파라미터를 지원하지 않으므로 개발자센터에서 직접 설정해야 합니다.

google → const AuthProvider

구글 로그인

GoogleConfig로 설정합니다. iOS에서는 iosClientId가 필요합니다.

apple → const AuthProvider

애플 로그인

AppleConfig로 설정합니다. iOS 13+, macOS에서만 지원됩니다. 첫 로그인 시에만 이름을 제공합니다.

Properties

displayName String
표시용 이름
no setter
englishName String
영문 이름
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsTokenRefresh bool
토큰 갱신 지원 여부
no setter
연결 해제 지원 여부
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<AuthProvider>
A constant List of the values in this enum, in order of their declaration.