Skip to content

Commit

Permalink
Fix native method rename and bump hotfix version (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
itaihanski authored Jun 27, 2024
1 parent 56a1c09 commit ca4b33b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ios/DescopeReactNative.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@interface RCT_EXTERN_MODULE(DescopeReactNative, NSObject)

RCT_EXTERN_METHOD(prepFlowWithResolver:(RCTPromiseResolveBlock)resolve
RCT_EXTERN_METHOD(prepFlow:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(startFlow:(NSString *)urlString
Expand Down
2 changes: 1 addition & 1 deletion ios/DescopeReactNative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DescopeReactNative: NSObject {

// Flow

@objc(prepFlowWithResolver:rejecter:)
@objc(prepFlow:rejecter:)
func prepFlow(resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) {
guard let randomBytes = Data(randomBytesCount: 32) else { return reject("code_generation", "Error generating random bytes", nil) }
let hashedBytes = Data(SHA256.hash(data: randomBytes))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@descope/react-native-sdk",
"version": "0.6.0",
"version": "0.6.1",
"description": "The Descope SDK for React-Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit ca4b33b

Please sign in to comment.