OAuth Simple Authentication Help iOS Swift 3 Xcode 8

Where do you get the productSlug and organizationSlug when creating an OAuth(Simple Authentication) iOS App in Xcode 8 and Swift 3?
I want to make sure I am filling in these fields correctly when building my iOS Particle App. I have already checked out the previous posts about this, but none of them clearly answered my question. I know you can get them from the particle console, but where specifically in the console??? Please be specific, but feel free to blur out or replace the text in any examples you give, as to properly protect your products.

My second part of the question, is that in my app, when someone decides to not sign up for a particle account when they get prompted to, and presses the cancel button instead at the top left of the View Controller, the app crashes out and XCode’s logs present the message below. I have a feeling the two issues may be related, but I could use some help getting to the bottom of this. I have also included the didFinishWithResult function that Xcode is having issues with:

didFinishWithResult Function:

func sparkSetupViewController(_ controller: SparkSetupMainController!, didFinishWith result: SparkSetupMainControllerResult, device: SparkDevice!) {        
        if result == .loggedIn
        {       
            print("Logged In")
        }
        if result == .skippedAuth
        {
            print("skipped auth")
        }
       if result == .userCancel{
            print("User Canceled")
        }
        else
       {
            print("Something else happend")
        }
    }

Xcode Error Log:

2016-10-10 14:32:15.065 TestDoorButton[15862:2083134] -[TestDoorButton.ViewController sparkSetupViewController:didFinishWithResult:device:]: unrecognized selector sent to instance 0x7fd69a701f10
2016-10-10 14:32:15.186 TestDoorButton[15862:2083134] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TestDoorButton.ViewController sparkSetupViewController:didFinishWithResult:device:]: unrecognized selector sent to instance 0x7fd69a701f10'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001063d434b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x0000000105a1821e objc_exception_throw + 48
	2   CoreFoundation                      0x0000000106443f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x0000000106359c15 ___forwarding___ + 1013
	4   CoreFoundation                      0x0000000106359798 _CF_forwarding_prep_0 + 120
	5   SparkSetup                          0x00000001054259f3 __51-[SparkSetupMainController setupDidFinishObserver:]_block_invoke + 131
	6   UIKit                               0x0000000106974684 -[UIPresentationController transitionDidFinish:] + 1289
	7   UIKit                               0x0000000106b8bf43 -[_UICurrentContextPresentationController transitionDidFinish:] + 42
	8   UIKit                               0x0000000106978120 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 183
	9   UIKit                               0x000000010733cfbd -[_UIViewControllerTransitionContext completeTransition:] + 102
	10  UIKit                               0x000000010697100c -[UITransitionView notifyDidCompleteTransition:] + 251
	11  UIKit                               0x0000000106970d1f -[UITransitionView _didCompleteTransition:] + 1539
	12  UIKit                               0x0000000118dc9993 -[UITransitionViewAccessibility _didCompleteTransition:] + 42
	13  UIKit                               0x000000010697374c -[UITransitionView _transitionDidStop:finished:] + 104
	14  UIKit                               0x0000000106884475 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	15  UIKit                               0x00000001068849ca -[UIViewAnimationState animationDidStop:finished:] + 136
	16  UIKit                               0x0000000118e0070d -[UIViewAnimationStateAccessibility animationDidStop:finished:] + 121
	17  QuartzCore                          0x000000010c7fc98c _ZN2CA5Layer23run_animation_callbacksEPv + 316
	18  libdispatch.dylib                   0x0000000109f1c0cd _dispatch_client_callout + 8
	19  libdispatch.dylib                   0x0000000109efc8d6 _dispatch_main_queue_callback_4CF + 406
	20  CoreFoundation                      0x00000001063984f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	21  CoreFoundation                      0x000000010635df8d __CFRunLoopRun + 2205
	22  CoreFoundation                      0x000000010635d494 CFRunLoopRunSpecific + 420
	23  GraphicsServices                    0x000000010c011a6f GSEventRunModal + 161
	24  UIKit                               0x00000001067f7964 UIApplicationMain + 159
	25  TestDoorButton                      0x000000010528be4f main + 111
	26  libdyld.dylib                       0x0000000109f6868d start + 1
	27  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Did you add the Particle delegates to the view?

I am guessing you are referring to my second problem. Your question is a bit vague. Do you mean, did I set the current View Controller, that has the button on it to launch the OAuth Particle Login View Controller, as the delegate?? If so, the answer is yes. Here is the function that launches the Particle OAuth Simple Authentication View Controller. I am doing some customization to the view through another function, but the crashing upon canceling is happening with and without the customization. Still need help with my first question too though. Thank you.

func mySparkCloudLogin(){
        if let setupController = SparkSetupMainController(){
            setupController.delegate = self
            
            self.present(setupController, animated: true, completion: nil)
        }
}

Sorry I thought your problem was that the app couldn’t open the setupView.