Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dlyt
committed
May 18, 2017
1 parent
08048e4
commit e5dbc00
Showing
12 changed files
with
145 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// import axios from 'axios' | ||
// import * as types from './types' | ||
// import { AsyncStorage } from 'react-native' | ||
// import DeviceInfo from 'react-native-device-info' | ||
// import setAuthorizationToken from '../lib/setAuthorizationToken' | ||
|
||
// export function getToken() { | ||
// const uuid = DeviceInfo.getUniqueID() | ||
// const json = { user: { uuid: uuid } } | ||
// return dispatch => { | ||
// AsyncStorage.getItem(`userToken`).then( | ||
// (res) => { | ||
// if (!res) { | ||
// axios.post('/users/tourists', json) | ||
// .then((res) => { | ||
// setAuthorizationToken(res.token) | ||
// AsyncStorage.setItem(`userToken`, res.token) | ||
// }) | ||
// } | ||
// else{ | ||
// setAuthorizationToken(res) | ||
// } | ||
// } | ||
// ) | ||
// } | ||
// } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.