-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(authentication): add
revokeAccessToken(...)
method (#644)
- Loading branch information
Showing
15 changed files
with
202 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@capacitor-firebase/authentication': minor | ||
--- | ||
|
||
feat: add `revokeAccessToken(...)` method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...capacitorjs/plugins/firebase/authentication/classes/options/RevokeAccessTokenOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.capawesome.capacitorjs.plugins.firebase.authentication.classes.options; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
public class RevokeAccessTokenOptions { | ||
|
||
@NonNull | ||
private String token; | ||
|
||
public RevokeAccessTokenOptions(@NonNull String token) { | ||
this.token = token; | ||
} | ||
|
||
@NonNull | ||
public String getToken() { | ||
return this.token; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...apawesome/capacitorjs/plugins/firebase/authentication/interfaces/EmptyResultCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package io.capawesome.capacitorjs.plugins.firebase.authentication.interfaces; | ||
|
||
public interface EmptyResultCallback extends ResultCallback { | ||
void success(); | ||
} |
7 changes: 7 additions & 0 deletions
7
...wesome/capacitorjs/plugins/firebase/authentication/interfaces/NonEmptyResultCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.capawesome.capacitorjs.plugins.firebase.authentication.interfaces; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
public interface NonEmptyResultCallback<T extends Result> extends ResultCallback { | ||
void success(@NonNull T result); | ||
} |
3 changes: 1 addition & 2 deletions
3
.../io/capawesome/capacitorjs/plugins/firebase/authentication/interfaces/ResultCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package io.capawesome.capacitorjs.plugins.firebase.authentication.interfaces; | ||
|
||
public interface ResultCallback<T extends Result> { | ||
void success(T result); | ||
public interface ResultCallback { | ||
void error(Exception exception); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/authentication/ios/Plugin/Classes/Options/RevokeAccessTokenOptions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Foundation | ||
|
||
@objc public class RevokeAccessTokenOptions: NSObject { | ||
private var token: String | ||
|
||
init(token: String) { | ||
self.token = token | ||
} | ||
|
||
func getToken() -> String { | ||
return token | ||
} | ||
} |
Oops, something went wrong.