File tree 4 files changed +13
-3
lines changed
src/libs/getPlaidOAuthReceivedRedirectURI 4 files changed +13
-3
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import GetPlaidOAuthReceivedRedirectURI from './types' ;
2
+
3
+ const getPlaidOAuthReceivedRedirectURI : GetPlaidOAuthReceivedRedirectURI = ( ) => null ;
4
+
5
+ export default getPlaidOAuthReceivedRedirectURI ;
Original file line number Diff line number Diff line change
1
+ import GetPlaidOAuthReceivedRedirectURI from './types' ;
2
+
1
3
/**
2
4
* After a user authenticates their bank in the Plaid OAuth flow, Plaid returns us to the redirectURI we
3
5
* gave them along with a stateID param. We hand off the receivedRedirectUri to PlaidLink to finish connecting
4
6
* the user's account.
5
- * @returns {String | null }
6
7
*/
7
- export default ( ) => {
8
+ const getPlaidOAuthReceivedRedirectURI : GetPlaidOAuthReceivedRedirectURI = ( ) => {
8
9
const receivedRedirectURI = window . location . href ;
9
10
const receivedRedirectSearchParams = new URL ( window . location . href ) . searchParams ;
10
11
const oauthStateID = receivedRedirectSearchParams . get ( 'oauth_state_id' ) ;
@@ -15,3 +16,5 @@ export default () => {
15
16
}
16
17
return receivedRedirectURI ;
17
18
} ;
19
+
20
+ export default getPlaidOAuthReceivedRedirectURI ;
Original file line number Diff line number Diff line change
1
+ type GetPlaidOAuthReceivedRedirectURI = ( ) => null | string ;
2
+
3
+ export default GetPlaidOAuthReceivedRedirectURI ;
You can’t perform that action at this time.
0 commit comments