File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11// @flow
22import {
3- api ,
4- loadLoginCredentials ,
5- sisLogin ,
6- isLoggedIn ,
3+ api ,
4+ isLoggedIn ,
75} from '../lib/login'
86import { AsyncStorage , NetInfo } from 'react-native'
97
Original file line number Diff line number Diff line change 11// @flow
22import {
3- api ,
4- loadLoginCredentials ,
5- sisLogin ,
6- isLoggedIn ,
3+ api ,
4+ loadLoginCredentials ,
5+ isLoggedIn ,
76} from '../lib/login'
87import { AsyncStorage , NetInfo } from 'react-native'
98
@@ -87,6 +86,7 @@ async function getFinancialDataFromServer(): Promise<FinancialDataShapeType> {
8786}
8887
8988
89+ // TODO: come up with a better story around auth for olecard
9090export default async function getWeeklyMealsRemaining ( ) {
9191 let { username , password } = await loadLoginCredentials ( )
9292 let form = buildFormData ( {
Original file line number Diff line number Diff line change 99 View ,
1010 Text ,
1111 AsyncStorage ,
12+ Navigator ,
1213} from 'react-native'
1314import startsWith from 'lodash/startsWith'
1415
@@ -23,6 +24,7 @@ const AUTH_REJECTED_URL = 'https://www.stolaf.edu/sis/login.cfm?error=access_den
2324
2425export default class SISLoginView extends React . Component {
2526 static propTypes = {
27+ navigator : React . PropTypes . instanceOf ( Navigator ) ,
2628 onLoginComplete : React . PropTypes . func ,
2729 } ;
2830
You can’t perform that action at this time.
0 commit comments