Skip to content

Commit 0f4aced

Browse files
committed
Rename getCredentialWithLink to credentialWithLink
1 parent a070010 commit 0f4aced

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

firebase-auth/src/androidMain/kotlin/dev/gitlive/firebase/auth/credentials.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ actual object EmailAuthProvider {
2929
password: String
3030
): AuthCredential = AuthCredential(com.google.firebase.auth.EmailAuthProvider.getCredential(email, password))
3131

32-
actual fun getCredentialWithLink(
32+
actual fun credentialWithLink(
3333
email: String,
3434
emailLink: String
3535
): AuthCredential = AuthCredential(com.google.firebase.auth.EmailAuthProvider.getCredentialWithLink(email, emailLink))

firebase-auth/src/commonMain/kotlin/dev/gitlive/firebase/auth/credentials.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ expect class OAuthCredential : AuthCredential
1515

1616
expect object EmailAuthProvider {
1717
fun credential(email: String, password: String): AuthCredential
18-
fun getCredentialWithLink(email: String, emailLink: String): AuthCredential
18+
fun credentialWithLink(email: String, emailLink: String): AuthCredential
1919
}
2020

2121
expect object FacebookAuthProvider {

firebase-auth/src/commonTest/kotlin/dev/gitlive/firebase/auth/auth.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class FirebaseAuthTest {
109109
fun testGetCredentialWithLink() {
110110
val link = "http://localhost:9099/emulator/action?mode=signIn&lang=en&oobCode=_vr0QcFcxcVeLZbrcU-GpTaZiuxlHquqdC8MSy0YM_vzWCTAQgV9Jq&apiKey=fake-api-key&continueUrl=https%3A%2F%2Fexample.com%2Fsignin"
111111
val email = "[email protected]"
112-
val credential = EmailAuthProvider.getCredentialWithLink(email, link)
112+
val credential = EmailAuthProvider.credentialWithLink(email, link)
113113
assertEquals("password", credential.providerId)
114114
}
115115

firebase-auth/src/iosMain/kotlin/dev/gitlive/firebase/auth/credentials.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ actual object EmailAuthProvider {
2121
): AuthCredential =
2222
AuthCredential(FIREmailAuthProvider.credentialWithEmail(email = email, password = password))
2323

24-
actual fun getCredentialWithLink(
24+
actual fun credentialWithLink(
2525
email: String,
2626
emailLink: String
2727
): AuthCredential =

firebase-auth/src/jsMain/kotlin/dev/gitlive/firebase/auth/credentials.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ actual object EmailAuthProvider {
1717
actual fun credential(email: String, password: String): AuthCredential =
1818
AuthCredential(firebase.auth.EmailAuthProvider.credential(email, password))
1919

20-
actual fun getCredentialWithLink(
20+
actual fun credentialWithLink(
2121
email: String,
2222
emailLink: String
2323
): AuthCredential = AuthCredential(firebase.auth.EmailAuthProvider.credentialWithLink(email, emailLink))

0 commit comments

Comments
 (0)