2019-11-18 23:37:36 +00:00
|
|
|
import queryString from "query-string";
|
|
|
|
|
|
|
|
export function extractIdentityToken(locationSearch: string) {
|
|
|
|
const queryParams = queryString.parse(locationSearch);
|
2021-01-02 10:58:24 +00:00
|
|
|
return queryParams && "token" in queryParams ? (queryParams["token"] as string) : null;
|
|
|
|
}
|