Builds fail after upgrading to version 4.1.0. Seems to be a typo (265 instead of 256)?
https://github.com/FormidableLabs/react-native-app-auth/blob/f45173b95f45162e0f0297a40e7b50df07295e3c/ios/RNAppAuth.m#L162
e.g. IdentityServer 4 / Okta / AzureExpoKit?Could you tell me what version of AppAuth-iOS you're using?
I merged a PR that added this and then reverted the change that converted 265 -> 256 in this PR since it's a naming change that AppAuth-iOS fixed in AppAuth-iOS/1.0.0.beta1 & I didn't want to depend on it until they've properly released a v1.
That’s it, using the beta version. Will revert to latest non-beta.
On 22 Feb 2019, at 12:52, Kadi Kraman notifications@github.com wrote:
Could you tell me what version of AppAuth-iOS you're using?
I merged a PR that added this and then reverted the change that converted 265 -> 256 in this PR since it's a naming change that AppAuth-iOS fixed in AppAuth-iOS/1.0.0.beta1 & I didn't want to depend on it until they've properly released a v1.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Sorted, builds are green again. Thanks kadikraman, apologies for jumping on this!
I am still having that issue.

@hadnazzar Odd, can you copy the podfile here?
@janpieterz
I am using the latest master
github "openid/AppAuth-iOS" "master"
@hadnazzar The latest master isn't compatible with the react-native-app-auth library.
I'd recommend using pod 'AppAuth', '0.95.0' to ensure you're using the correct version.
@janpieterz can you share your pod file with please?
Sure:
platform :ios, '9.0'
target 'SampleApp' do
pod 'AppAuth', '0.95.0'
end
@janpieterz thank you so much i tried with 0.95.0 too.
It is working right now 👍
@janpieterz Hello! I'm still getting this error - with a fresh install of the library at 4.4.0. Pod installed as per instructions here. Rather than opening a new issue I was hoping you might be able to point be in the right direction here.

My Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'BCAutoFillExtension' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for BCAutoFillExtension
end
target 'Buttercup' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Buttercup
pod 'AppAuth', '>= 0.94'
target 'ButtercupTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'Buttercup-tvOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Buttercup-tvOS
target 'Buttercup-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
Checking the node_modules/react-native-app-auth/ios/RNAppAuth.m file, I still find the following:
NSData *sha265Verifier = [OIDTokenUtilities sha265:codeVerifier];
return [OIDTokenUtilities encodeBase64urlNoPadding:sha265Verifier];
$ cat ./node_modules/react-native-app-auth/package.json | grep "\"version\":"
"version": "4.4.0",
In fact, if I check the latest stable tag, the bug is still present there:
https://github.com/FormidableLabs/react-native-app-auth/blob/v4.4.0/ios/RNAppAuth.m#L162-L163
@perry-mitchell Are you sure your pod is resolved to 0.94 and not to a later version?
@janpieterz The Podfile.lock is as follows:
PODS:
- AppAuth (1.0.0):
- AppAuth/Core (= 1.0.0)
- AppAuth/ExternalUserAgent (= 1.0.0)
- AppAuth/Core (1.0.0)
- AppAuth/ExternalUserAgent (1.0.0)
DEPENDENCIES:
- AppAuth (>= 0.95)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- AppAuth
SPEC CHECKSUMS:
AppAuth: c42547576838bf025b852736dd9b8a1c943fe68f
PODFILE CHECKSUM: 83d4a7247cfb35db0df977839fc72910bf5e706c
COCOAPODS: 1.7.5
But I don't understand.. The latest stable version seems to still have that typo. I see no newer version (besides master and the beta) that has that changed.
Thanks for the help!
Hi @perry-mitchell , you'll have to depend either on the latest beta (v5.0.0-rc1) or revert AppAuth to use v 0.94 or 0.95 specifically. See above for the podfile used.
@janpieterz That was it entirely, thanks for spelling it out for me. Cheers!
Thanks for being the MVP here @janpieterz 🙌
Sorry to add chatter, but did anyone else notice the issue number here is 256? It seems coincidental considering the problem is that 265 needs to instead be 256 😆 .
Most helpful comment
@hadnazzar The latest master isn't compatible with the
react-native-app-authlibrary.I'd recommend using
pod 'AppAuth', '0.95.0'to ensure you're using the correct version.