mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
689fd7cb95
We now extend the default Eslint configuration and enforce styling with prettier for all of our frontend code.
7 lines
257 B
TypeScript
7 lines
257 B
TypeScript
import queryString from "query-string";
|
|
|
|
export function extractIdentityToken(locationSearch: string) {
|
|
const queryParams = queryString.parse(locationSearch);
|
|
return queryParams && "token" in queryParams ? (queryParams["token"] as string) : null;
|
|
}
|