Skip to content

Commit

Permalink
Fixed nullability of getKeychainValue
Browse files Browse the repository at this point in the history
  • Loading branch information
BreckoEC committed Mar 8, 2023
1 parent f04b53d commit b027c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/ShareExtensionModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ShareExtensionNativeModule: Module {
group = (Bundle.main.object(forInfoDictionaryKey: "ShareExtensionKeychainAccessGroup") as? String)!
}

Function("getKeychainValue") { (key: String) -> String in
Function("getKeychainValue") { (key: String) -> String? in
return KeychainHelper.getValue(forKey: key, inGroup: group!)
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ShareExtensionNativeModule from './ShareExtensionNativeModule'
import { RecordUser } from './types'

export function getKeychainValue(key: string): string {
export function getKeychainValue(key: string): string | undefined {
return ShareExtensionNativeModule.getKeychainValue(key)
}

Expand Down

0 comments on commit b027c51

Please sign in to comment.