fix: remove hardcoded API token from SettingsScreen #16
1 changed files with 1 additions and 3 deletions
fix: remove hardcoded API token from SettingsScreen
- Replace hardcoded Bearer token default with empty string - Remove auto-save in useEffect that wrote defaults to SecureStore without user consent on first app launch Fixes #2
commit
a27a96957d
|
|
@ -28,7 +28,7 @@ export async function getApiConfig(): Promise<ApiConfig | null> {
|
|||
|
||||
export default function SettingsScreen() {
|
||||
const [url, setUrl] = useState('https://weegschaal.eddydevink.nl')
|
||||
const [token, setToken] = useState('75231d5f2f9cfc40d99646f8d9d8ba890a5a55b01d09807cdcd5191e0d9bf19c')
|
||||
const [token, setToken] = useState('')
|
||||
const [showToken, setShowToken] = useState(false)
|
||||
const [syncing, setSyncing] = useState(false)
|
||||
|
||||
|
|
@ -37,8 +37,6 @@ export default function SettingsScreen() {
|
|||
if (c) {
|
||||
setUrl(c.url)
|
||||
setToken(c.token)
|
||||
} else {
|
||||
saveConfig({ url, token })
|
||||
}
|
||||
})
|
||||
}, [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue