feat(auth): include existing device ID in SSO and password login flows
This commit is contained in:
@@ -54,9 +54,11 @@ export function TokenLogin({ token }: TokenLoginProps) {
|
||||
>(useCallback(login, []));
|
||||
|
||||
useEffect(() => {
|
||||
const existingDeviceId = localStorage.getItem('cinny_device_id') ?? undefined;
|
||||
startLogin(baseUrl, {
|
||||
type: 'm.login.token',
|
||||
token,
|
||||
device_id: existingDeviceId,
|
||||
initial_device_display_name: 'Paarrot',
|
||||
});
|
||||
}, [baseUrl, token, startLogin]);
|
||||
|
||||
Reference in New Issue
Block a user