Skip to content

feat: browser auth bridge impl#31

Open
jaredperreault-okta wants to merge 51 commits into
jp-react-native-sdkfrom
jp-rn-browser-session
Open

feat: browser auth bridge impl#31
jaredperreault-okta wants to merge 51 commits into
jp-react-native-sdkfrom
jp-rn-browser-session

Conversation

@jaredperreault-okta
Copy link
Copy Markdown
Contributor

No description provided.

url: string,
redirectUri: string
): Promise<BrowserSessionResult> {
console.log('[openAuthSession] called')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the console.logs in this function be gated behind a debug flag or something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are just for debugging/development. They will be removed before beta release

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this is just a merge into the feature branch - to break up what otherwise would be a 300+ file PR 😅 )

getDefault (): Promise<Credential | null>;
setDefault (cred: Credential | null): Promise<void>;
get tokenStorage (): TokenStorage;
tokenStorage: TokenStorage;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this is needed so RN can install its own storage at import time, but that be limited to a one time operation? this allows mutability even after initialization, right

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. This is intentional. JavaScript doesn't have a compiler, therefore any changes to configurations and/or defaults will be performed at runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants