How to configure AppDelegate ios file when using CRNA?

Im trying to implement auth0 in my app for login but the documentation says that i need access to the AppDelegate.m file, using CRNA i cant access it without detaching…

Any ideas how i could go about doing this?

I need to add the following:

#import <React/RCTLinkingManager.h>

  • (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
    sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
    {
    return [RCTLinkingManager application:application openURL:url
    sourceApplication:sourceApplication annotation:annotation];
    }

Thanks in advance!

There is an example on github showing how to configure Auth0
https://github.com/expo/auth0-example

It’s important to note 2 things:

  • You will need to follow the web setup instructions
  • Auth0 sucks and loses user info - will suck to change at scale. I would recommend using anything else.

EDIT: I meant OAuth. OAuth != Auth0

Thanks for your reply bacon! I decided to use my own API so wont be going near auth0. Yours is the first negative thing i have read about it though.

Good to hear, I was thinking of OAuth… dyslexia + stupidity = yours truly <3

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.