react-native-credentials-manager 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,6 +73,22 @@ class CredentialsManagerModule(
73
73
  }
74
74
  }
75
75
 
76
+
77
+ @ReactMethod
78
+ fun signOut(
79
+ promise: Promise,
80
+ ) {
81
+ coroutineScope.launch {
82
+ try {
83
+ credentialHandler.signOut()
84
+ promise.resolve(null)}
85
+ catch (e: ClearCredentialException) {
86
+ Log.e("CredentialManager", "Error during sign out", e)
87
+ promise.reject("ERROR", e.message.toString())
88
+ }
89
+ }
90
+ }
91
+
76
92
  @ReactMethod
77
93
  fun signInWithGoogle(
78
94
  requestObject: ReadableMap,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-credentials-manager",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "A React Native library that implements the Credential Manager API for Android. This library allows you to manage passwords and passkeys in your React Native applications.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",