lint & format
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user