lint & format

This commit is contained in:
2023-10-12 18:01:17 -05:00
parent 9728959b5e
commit 300abb5360
9 changed files with 59 additions and 50 deletions

View File

@@ -1,12 +1,14 @@
export function getAuthKeyFromProperties(props) {
var authKey;
var authKey;
if (props.sessionIdentifier && props.sessionIdentifier.length > 0) {
authKey = props.sessionIdentifier;
} else if (props.username && props.username.length > 0) {
authKey = props.username;
} else {
throw new Error('_sessionIdentifier or username properties not found (check query params)');
throw new Error(
"_sessionIdentifier or username properties not found (check query params)"
);
}
return authKey
return authKey;
}