mirror of
https://github.com/LukeHagar/plex-api-oauth.git
synced 2025-12-06 20:47:45 +00:00
Update PlexAPIOAuth.js
This commit is contained in:
@@ -3,14 +3,14 @@ import { v4 } from "uuid";
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import qs from "qs";
|
import qs from "qs";
|
||||||
|
|
||||||
export function CreatePlexClientInformation(
|
export function CreatePlexClientInformation({
|
||||||
clientIdentifier = v4(),
|
clientIdentifier = v4(),
|
||||||
product = FnBrowserDetect(),
|
product = FnBrowserDetect(),
|
||||||
device = navigator.userAgentData.platform,
|
device = navigator.userAgentData.platform,
|
||||||
version = navigator.userAgentData.brands[0].version,
|
version = navigator.userAgentData.brands[0].version,
|
||||||
forwardUrl = "",
|
forwardUrl = "",
|
||||||
platform = "Plex-API-OAuth"
|
platform = "Plex-API-OAuth",
|
||||||
) {
|
}) {
|
||||||
let plexClientInformation = {
|
let plexClientInformation = {
|
||||||
clientIdentifier: clientIdentifier,
|
clientIdentifier: clientIdentifier,
|
||||||
product: product,
|
product: product,
|
||||||
|
|||||||
Reference in New Issue
Block a user