Use `Symbol` rather than `OpaqueToken`
See original GitHub issueGiven the use case for OpaqueToken
it seems like you could do away with that type and use Symbol
instead. Symbols are immutable and unique, and the polyfills for Symbol are generally lightweight.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
angular-cli AOT error resolving symbols - Stack Overflow
I do import some external values into my app using Opaque tokens like this: export let dnnModId: any = new OpaqueToken('moduleId'); ...
Read more >ubiquityIdentityToken - Documentation - Apple Developer
An opaque token that represents the current user's iCloud Drive Documents ... In macOS, you can instead use an NSDocument object, which establishes...
Read more >Expression-Based Access Control :: Spring Security
Spring Security uses SpEL for expression support and you should look at how that works if you are interested in understanding the topic...
Read more >Fix list for IBM WebSphere Application Server V8.5
PH37872, LTPA token getting refreshed using the custom cacheKey instead having to ... PH25547, OIDC incorrect behavior if opaque token is in Authorization ......
Read more >Using Spring Cloud Gateway with OAuth 2.0 Patterns | Baeldung
OAuth Client; OAuth Resource Server. Let's discuss each of those cases in more detail. 3.1. Spring Cloud Gateway as an OAuth 2.0 Client....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As mentioned in Slack:
Advantages to using Symbol:
Symbol.for
.@tbosch so this runtime class exists to support build-time typing ergonomics? That doesn’t seem good.
Why not just allow generics on the get method?
vs