Skip to content

Remove Web Crypto API support checking code #139

@tom-konda

Description

@tom-konda

Motivation

In osm-auth.mjs at line 578-583, checks Web Crypto API supporting.
I think this code no need because of following 2 reasons.

  1. All of modern browsers are supporting Web Crypto API. (See MDN)
  2. Node.js supports Web Crypto API since Node 20, but this function always returns false because window object is not defined on Node.js.

Proposal

Remove Web Crypto API support checking code and Web Crypto API is called from globalThis object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions